zhoujun.g 发表于 2016-10-24 10:23:26

用update和replace在mysql中替换某一个字段的部分内容

  简单的一句语句:
  

update table_name set column_name = (REPLACE(column_name, 'xxx', 'yyy')) where ...


其他方式,参考:http://hi.baidu.com/phpzhang/blog/item/7c96ec3474e89e45241f141c.html
页: [1]
查看完整版本: 用update和replace在mysql中替换某一个字段的部分内容