Syntax
RTRIM(str)
Purpose
You can call this function to remove the trailing spaces on the right side of the str string.
Examples
obclient> SELECT RTRIM(' obclient ') AS rtrim;
+--------------+
rtrim
+--------------+
obclient
+--------------+
1 row in set (0.00 sec)