In my database, I have a table named LOGIN:
Userid password
user1 pwd1
user2 pwd2
So my concern is, when entering Userid, it does not check if white space is there.
For example, I’d like it to show an error when us er 1 is the Userid.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can make use of LTRIM/RTRIM function and
REPLACE(string,' ',''). This might become very intensive. I would however strongly suggest to have a form of validation and check the integrity of your data before it is entered into the database.