1200字范文,内容丰富有趣,写作的好帮手!
1200字范文 > html网页关键字批量替换 织梦(DEDECMS)批量替换文章 标题 关键字 标签等等内容的SQL命令...

html网页关键字批量替换 织梦(DEDECMS)批量替换文章 标题 关键字 标签等等内容的SQL命令...

时间:2020-04-23 14:58:52

相关推荐

html网页关键字批量替换 织梦(DEDECMS)批量替换文章 标题 关键字 标签等等内容的SQL命令...

update dede_archives set title=replace(title,’旧标题’,’新标题’)

文章作者批量替换

update dede_archives set writer=replace(writer,’旧作者’,’新作者’)

文章来源批量替换

update dede_archives set source=replace(source,’旧来源’,’新来源’);

文章标签批量替换

update dede_tagindex set tag=replace(tag,’旧关键字’,’新关键字’);

update dede_taglist set tag=replace(tag,’旧标签’,’新标签’);

文章页关键字批量替换

update dede_archives set keywords=replace(keywords,’别人的’,’你的’);

文章页描述批量替换

update dede_archives set description=replace(description,’旧描述’,’新描述’)

文章Url规则批量替换

(把所有文章Url规则全部替换成{typedir}/{aid}.html这样一种形式)

update dede_arctype set namerule='{typedir}/{aid}.html’;

内容批量替换

update dede_addonarticle set body=replace(body,’旧内容’,’新内容’)

缩略图批量替换

update dede_archives set litpic=replace(litpic,’旧图地址’,’新图地址’)

DeDeCMS 清空所有文章SQL语句

DELETE FROM dede_addonarticle WHERE aid >= 1 and aid< =5000;DELETE FROM dede_arctiny WHERE id >= 1 and id< =5000;DELETE FROM dede_archives WHERE id >= 1 and id<=5000;

注意:清空回收站里所有的文章

delete dede_addonarticle,dede_archives,dede_arctiny from dede_addonarticle,dede_archives,dede_arctiny where dede_addonarticle.aid=dede_archives.id and dede_arctiny.id=dede_archives.id and dede_archives.arcrank=’-2′

织梦批量删除文章内容数据库里所有超链接

注意:记得先备份一下数据库

后台-系统-SQL,执行多几次 下面2个语句一起执行多次

update #@__addonarticle set body=replace(body,substring(body,locate('',body,locate('

update #@__addonarticle set body=replace(body,'

','');

喜欢 (0)or分享 (0)

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。