有时可能需要批量替换数据库中某个字段的的部分内容,可以用如下的操作:

update test set Content = REPLACE(Content,'abc001','test') where IDX = 2 AND Content REGEXP 'http://static.abc001.com/123.jpg';