select name from emp_profile;
Result:
tom@rj6.com
In the above result how to determine whether there are trailing spaces in it or not
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.
RTRIM()removes trailing spaces.If
RTRIM(name)varies fromname, there are trailing spaces in the field.Related functions are
LTRIM()(trims starting spaces) andTRIM()(both sides)As a side note, I would recommend removing trailing spaces (and other invalid data) during input time on application level, not in the database.