Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.
Removes trailing blanks from the string.
RTRIM( string-expression )
string-expression The string to be trimmed.
The actual length of the result is the length of the expression minus the number of characters removed. If all the characters are removed, the result is an empty string.
If the argument is null, the result is the NULL value.
The following statement returns the string Test Message, with all trailing blanks removed:
Test Message
SELECT RTRIM( 'Test Message ' );