DeDeCMS 標(biāo)題批量替換
-
update dede_archives set title=replace(title,'舊標(biāo)題','新標(biāo)題')
DeDeCMS 文章作者批量替換
-
update dede_archives set writer=replace(writer,'舊作者','新作者');
DeDeCMS 文章來源批量替換
-
update dede_archives set source=replace(source,'舊來源','新來源');
DeDeCMS 文章標(biāo)簽批量替換
-
update dede_tagindex set tag=replace(tag,'舊關(guān)鍵字','新關(guān)鍵字');
-
update dede_taglist set tag=replace(tag,'舊標(biāo)簽','新標(biāo)簽');
DeDeCMS 文章頁關(guān)鍵字批量替換
-
update dede_archives set keywords=replace(keywords,'別人的','你的');
DeDeCMS 文章頁描述批量替換
-
update dede_archives set description=replace(description,'舊描述','新描述');
DeDeCMS 文章Url規(guī)則批量替換
(把所有文章Url規(guī)則全部替換成{typedir}/{aid}.html這樣一種形式)
-
update dede_arctype set namerule='{typedir}/{aid}.html';
DeDeCMS 內(nèi)容批量替換
-
update dede_addonarticle set body=replace(body,'舊內(nèi)容','新內(nèi)容')
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'