mysql> select " ddd dddee "; +--------------+ | ddd dddee | +--------------+ | ddd dddee | +--------------+ 1 row in set (0.00 sec) mysql> select rtrim(" ddd dddee "); +-----------------------+ | rtrim(" ddd dddee ") | +-----------------------+ | ddd dddee | +-----------------------+ 1 row in set (0.00 sec) mysql> select ltrim(" ddd dddee "); +-----------------------+ | ltrim(" ddd dddee ") | +-----------------------+ | ddd dddee | +-----------------------+ 1 row in set (0.00 sec) mysql> select trim(" ddd dddee "); +----------------------+ | trim(" ddd dddee ") | +----------------------+ | ddd dddee | +----------------------+ 1 row in set (0.00 sec)