MySQL rtrim()函數
RTRIM(str)
返回字符串 str 刪除尾部的空格字符。
mysql> SELECT RTRIM('barbar '); +---------------------------------------------------------+ | RTRIM('barbar ') | +---------------------------------------------------------+ | barbar | +---------------------------------------------------------+ 1 row in set (0.00 sec)