Informatics Practices
What is the difference between Trim() and Rtrim() ?
SQL Queries
1 Like
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.
Answered By
3 Likes