CBSE Class 12 Informatics Practices Question 7 of 81

MySQL Functions — Question 3

Back to all questions
3
Question

Question 3

What is the difference between Trim() and Rtrim() ?

Answer

The difference between the TRIM() and RTRIM() functions is that the TRIM() function removes both leading and trailing spaces from a given string, performing the combined functions of LTRIM() and RTRIM(). On the other hand, the RTRIM() function only removes trailing spaces, i.e., spaces from the right side of the given string.