<var id="xvh3p"><noframes id="xvh3p"><var id="xvh3p"></var><listing id="xvh3p"><strike id="xvh3p"><listing id="xvh3p"></listing></strike></listing>
<var id="xvh3p"><strike id="xvh3p"><var id="xvh3p"></var></strike></var><th id="xvh3p"><strike id="xvh3p"><th id="xvh3p"></th></strike></th>
<span id="xvh3p"><noframes id="xvh3p"><dl id="xvh3p"></dl>
<span id="xvh3p"><noframes id="xvh3p">
<dl id="xvh3p"><noframes id="xvh3p">
<listing id="xvh3p"><noframes id="xvh3p"><listing id="xvh3p"><strike id="xvh3p"><listing id="xvh3p"></listing></strike></listing><th id="xvh3p"><strike id="xvh3p"><th id="xvh3p"></th></strike></th>
<th id="xvh3p"><strike id="xvh3p"></strike></th>
<dl id="xvh3p"><noframes id="xvh3p">
<th id="xvh3p"><noframes id="xvh3p">

观点

互联网+时代,说建站,谈运营与网络营销

DEDECMS批量替换文章,标题,关键字,标签等等内容的SQL命令

时间:2020-12-21

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'

  这些个常用的都在这里,整理不足的欢迎留言补上~~

    0
    首页
    案例
    关于
    联系