dedecms织梦SQL语句批量删除指定ID范围文章

shape
shape
shape
shape
shape
shape
shape
shape
%title缩略图

按织梦自定的的删除文章功能要很久不方便,便想到了用织梦dedecms 使用SQL语句批量删除指定ID范围文章

DELETE FROM dede_addonarticle WHERE aid >= 1 and aid<=2000;
DELETE FROM dede_arctiny WHERE id >= 1 and id<=2000;
DELETE FROM dede_archives WHERE id >= 1 and id<=2000;

id>= 1 这里的1是从文章ID为1开始,到2000; 大家可以自己设定;

发表评论