织梦批量替换数据库内容代码

2018-07-11  本文已影响0人  韩培_2647

第一句代码是用于搜索文章表里是否存在要替换的内容

select * from dede_addonarticle where body like '%4000250510%'; 搜索

下面的代码1表示要被替换的内容,2表示用于替换的新内容

update  `dede_addonarticle` set body=replace(body,'1','2');

update  `dede_archives` set title=replace(title,'1','2');

update  `dede_archives` set description=replace(description,'1','2');

update  `dede_archives` set keywords=replace(keywords,'1','2');

替换的位置在系统---SQL命令行工具,

植发_植发医院_植发价格多少钱_新生植发

上一篇 下一篇

猜你喜欢

热点阅读