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規(guī)則批量替換
(把所有文章Url規(guī)則全部替換成{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'