,,,,123,,,去掉多余的逗号

UPDATE `test1` SET name = REPLACE(name,',,','');

update `test1` set name=left(name,char_length(name)-1) where right(name,1)=',';

你可能感兴趣的:(,,,,123,,,去掉多余的逗号)