update your_table set your_col = replace(your_col,'234','345');REPLACE(str,from_str,to_str) 
在字符串 str 中所有出现的字符串 from_str 均被 to_str替换,然后返回这个字符串: 
mysql> SELECT REPLACE('www.mysql.com', 'w', 'Ww');
        -> 'WwWwWw.mysql.com'这个函数是多字节安全的。

解决方案 »

  1.   

    Update 表名 Set 字段名='1,345;2,345;4,345' Where 字段名='1,234;2,234;4,234'
      

  2.   

    mysql> select replace('1,234;2,234;4,234','234','345');
    +------------------------------------------+
    | replace('1,234;2,234;4,234','234','345') |
    +------------------------------------------+
    | 1,345;2,345;4,345                        |
    +------------------------------------------+
    1 row in set (0.13 sec)
      

  3.   

    各位大侠,先谢谢了。
    我有一点没说清楚。我的这个表有100多行,有没有办法一下子更新这100行?
    比如,第一行的这个field是1,234;2,234;4,234
       第一行的这个field是11,234;22,234;44,234'    
      

  4.   

    update your_table set your_col = replace(your_col,'234','345');