MySql怎样去掉某个字段最后的逗号或最后的字

update 表 set 字段=left(字段,char_length(字段)-1) where right(字段,1)=',';

posted @ 2015-01-12 11:34  潇潇留客  阅读(3873)  评论(0编辑  收藏  举报