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

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

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命令行工具,

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

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容