日期:2014-05-16 浏览次数:20868 次
mysql> select replace('100,1,1,0,0',100,1); +------------------------------+ | replace('100,1,1,0,0',100,1) | +------------------------------+ | 1,1,1,0,0 | +------------------------------+ 1 row in set (0.00 sec)
------解决方案--------------------
select replace('100,1,1,0,0',100,1);
------解决方案--------------------
update table1 set 有一列字符串=concat('1',mid(有一列字符串,4,100))
where 有一列字符串 like '100,%'