tags:

views:

15

answers:

1
mysql> select trim(',hi,test,',',');
ERROR 1064 (42000): You have an error in your SQL syntax;

I want to trim by , but seems not supported by MySQL

+3  A: 

Check the doc...

SELECT TRIM(BOTH ',' FROM ',hi,test,')
KennyTM