Returns a string with trailing blanks removed.
VARCHAR
NVARCHAR
LONG VARCHAR
LONG NVARCHAR
The result data type is a LONG VARCHAR. If you use RTRIM in a SELECT INTO statement, you must have an Unstructured Data Analytics Option license or use CAST and set RTRIM to the correct data type and size.