简单的一句语句:
update table_name set column_name = (REPLACE(column_name, 'xxx', 'yyy')) where ...
其他方式,参考: http://hi.baidu.com/phpzhang/blog/item/7c96ec3474e89e45241f141c.html
本文介绍了一种简单的SQL语句,用于更新数据库表中的特定字段值,通过将旧字符串替换为新字符串来实现数据更新。
简单的一句语句:
update table_name set column_name = (REPLACE(column_name, 'xxx', 'yyy')) where ...
1066
1257

被折叠的 条评论
为什么被折叠?