RTRIM
Remove trailing spaces. This function returns the string with any trailing whitespace characters removed.
Syntax
RTRIM(str)Description
Examples
SELECT QUOTE(RTRIM('MariaDB '));
+-----------------------------+
| QUOTE(RTRIM('MariaDB ')) |
+-----------------------------+
| 'MariaDB' |
+-----------------------------+SELECT RTRIM(''),RTRIM_ORACLE('');
+-----------+------------------+
| RTRIM('') | RTRIM_ORACLE('') |
+-----------+------------------+
| | NULL |
+-----------+------------------+See Also
Last updated
Was this helpful?

