问题概述
批量替换mysql一个表中某个字段的值里面的部分字符串,使用mysql replace函数
问题解决
01、备份表
CREATE TABLE xt_mbfwpz_bak_sjb AS SELECT * FROM xt_mbfwpz;
02、批量替换字符
UPDATE xt_mbfwpz SET target_url = REPLACE (
target_url, --- field
'10.199.150.134', --- oldchar
'10.199.20.200' --- newchar
);
SELECT * FROM xt_mbfwpz;
标签:mbfwpz,批量,replace,---,mysql,xt
From: https://www.cnblogs.com/xiaochina/p/17019545.html