http://www.vanhostingweb.com/2690.html
本教程是保留欄目,只是清空所有欄目里面的文章并且文章ID從1開始。
進入dedecms網(wǎng)站的后臺,選擇“系統(tǒng)設置”中的“SQL命令行工具”, 選擇“運行SQL命令行多行命令”,并在下方的命令框中輸入以下10行命令:
delete from dede_addonarticle;
delete from dede_addonimages;
delete from dede_archives;
delete from dede_arctiny;
delete from dede_co_htmls;
delete from dede_co_urls;
delete from dede_co_mediaurls;
delete from dede_tagindex ;
delete from dede_taglist;
delete from dede_keywords;
執(zhí)行成功后,清除命令框里面的上述命令。再執(zhí)行下面2行命令
TRUNCATE TABLE `dede_archives`;
TRUNCATE TABLE `dede_archives`;
執(zhí)行成功后,清除命令框里面的上述命令。最后再執(zhí)行下面3行命令
ALTER TABLE `dede_archives` AUTO_INCREMENT =1;
ALTER TABLE `dede_arctiny` AUTO_INCREMENT =1;
ALTER TABLE `dede_addonarticle` AUTO_INCREMENT =1;
織夢cms 欄目清空后新建ID從1開始的方法如下
ALTER TABLE 'dede_arctype' AUTO_INCREMENT =1;
執(zhí)行成功后,再發(fā)文章文章。文章ID就會從1開始了。
親測有效!
]]>