【主机相关】织梦dedecms批量删除文章
DEDECMS使用SQL批量删除aid文章,有时候批量采集的文章很不满意想都删除不要了,但是在后台一条条的删除文章的话实在太慢了,一次顶多删除30篇文章,所以找了个批量删除文章的SQL语句很好使.
工具/原料
DELETE FROM dede_addonarticle WHERE aid >= 1000 and aid<=2000;
DELETE FROM dede_arctiny WHERE id >= 1000 and id<=2000;
DELETE FROM dede_archives WHERE id >= 1000 and id<=2000;
步骤/方法
以下的一句意思是从aid1000-aid2000 批量删除 ,文章ID在每个文章前面都有。
DELETE FROM mvclub_addonarticle WHERE aid >= 7569 and aid<=8105;
DELETE FROM mvclub_arctiny WHERE id >= 7569 and id<=8105;
DELETE FROM mvclub_archives WHERE id >= 7569 and id<=8105;
SQL语句复制粘贴到SQL命令行工具里,然后运行即可。 运行之后完全清空了
注意事项
切记使用前记得备份下数据库以防万一出问题技术恢复数据库。
DELETE FROM mvclub_addonarticle WHERE aid >= 7569 and aid<=8164;
DELETE FROM mvclub_arctiny WHERE id >= 7569 and id<=8164;
DELETE FROM mvclub_archives WHERE id >= 7569 and id<=8164