SQL命令批量替换DedeCms文章标题 关键字标签内容方法

作者: admin2019-04-05
DeDeCMS 标题批量替换
update dede_archives set title=replace(title,'旧标题','新标题')

DeDeCMS 文章作者批量替换
update dede_archives set writer=replace(writer,'旧作者','新作者');

DeDeCMS 文章来源批量替换
update dede_archives set source=replace(source,'旧来源','新来源');

DeDeCMS 文章标签批量替换
update dede_tagindex set tag=replace(tag,'旧关键字','新关键字');
update dede_taglist set tag=replace(tag,'旧标签','新标签');

DeDeCMS 文章页关键字批量替换
update dede_archives set keywords=replace(keywords,'别人的','你的');

DeDeCMS 文章页描述批量替换
update dede_archives set description=replace(description,'旧描述','新描述');

DeDeCMS 文章Url规则批量替换
(把所有文章Url规则全部替换成{typedir}/{aid}.html这样一种形式)
update dede_arctype set namerule='{typedir}/{aid}.html';

DeDeCMS 内容批量替换
update dede_addonarticle set body=replace(body,'旧内容','新内容')

DeDeCMS 缩略图批量替换
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'
Copyright © WWW.LNWL.NET 版权所有
QQ在线咨询