mysql里批量修改表内某个字段内的部分数据

update table set field=replace(field,'oldString','newString')

update 表名 set  字段名 =replace( 字段名, '原内容','新内容')

update p_doctor set head_url = replace(head_url,"http://www.sxzyy.com/WebAppUpFiles/Images","http://sxzyy.jkproxy.jingcaiwang.cn/upload") where hospital_code="sxszyy" and head_url !='';
select * from p_doctor where hospital_code="sxszyy" and head_url !='';

猜你喜欢

转载自blog.csdn.net/a694704123b/article/details/79932214
今日推荐