开发者

How to implement select trim(string,','); for MySQL?

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

I wan开发者_如何转开发t to trim by , but seems not supported by MySQL


Check the doc...

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

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜