Syntax
RTRIM(str)
Purpose
RTRIM() removes the trailing spaces on the right side of the str string.
Examples
obclient> SELECT RTRIM(' obclient ') AS rtrim;
+--------------+
| rtrim |
+--------------+
| obclient |
+--------------+
1 row in set