Description
The RTRIM( ) function returns the strings with trailing spaces removed.
This function has the form:
SELECT RTRIM(str)
Parameter | Description |
---|---|
str | A string |
Return Value
The strings with trailing spaces removed.
Examples
The following example shows the basic use of this function:
mysql> SELECT RTRIM('barbar ');
-> 'barbar'