UPDATE `数据表名` SET `字段名` = replace(`字段名`, '要替换的字符串', '替换为') WHERE 设定条件;还有更强大的正则替换:update test set Content = REPLACE(Content,'abc001','test') where IDX = 2 AND Content REGEXP 'http://static.abc001.com/123.jpg';
UPDATE `数据表名` SET `字段名` = replace(`字段名`, '要替换的字符串', '替换为') WHERE 设定条件;还有更强大的正则替换:update test set Content = REPLACE(Content,'abc001','test') where IDX = 2 AND Content REGEXP 'http://static.abc001.com/123.jpg';