时间:2021-07-21人气:-
批量替换文章缩略图地址
1updatedede_archivessetlitpic=(REPLACE(litpic,/style/images/,/uploads/style/images/));批量替换正文内容超链接:
1updatedede_addonarticlesetbody=replace(body,href=http://www.baidu.com,href=h...批量替换文章缩略图地址:
1updatedede_archivessetlitpic=(REPLACE(litpic,'/style/images/','/uploads/style/images/'));批量替换正文内容超链接:
1updatedede_addonarticlesetbody=replace(body,'href="http://www.baidu.com','href="http://www.xiuzhanwang.com');批量替换正文内容:
1updatedede_addonarticlesetbody=replace(body,'原来的字符','替换后的字符')批量替换正文中图片路径:
1updatedede_addonarticlesetbody=replace(body,'/uploads/','/目录/uploads/');批量替换文章标题:
1update'dede_archives'settitle=replace(title,'百度','谷歌');批量替换描述中关键词:
1update'dede_archives'setdescription=replace(description,'百度','谷歌');批量替换文章发布作者:
1updatedede_archivessetwriter='你需要修改的作者'WHEREwriter='修改后';批量替换文章来源:
1updatedede_archivessetsource='你需要修改的来源'WHEREsource='修改后';SQL替换命令:
1234UPDATE表名SET字段=REPLACE(字段,'替换内容','替换值')表名dede_archives字段litpic(这是文章列表的图片缩略图)表名dede_addonarticle字段body(这是新闻文章内部的图片)表名dede_addonimages字段imgurls(这是图集文章内部的图片)下篇:织梦CMS上传附件到哪了