KnowledgeBoat Logo

Informatics Practices

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

SQL Queries

2 Likes

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

1 Like


Related Questions