我们只需要把下面的SQL语句填写到文本框中:
1
DELETE
FROM dede_addonarticle WHERE aid >= 1
and
aid<=2000;
2
DELETE
FROM dede_arctiny WHERE id >= 1
and
id<=2000;
3
DELETE
FROM dede_archives WHERE id >= 1
and
id<=2000;
1
DELETE
FROM dede_addonimages WHERE typeid = 7;
2
DELETE
FROM dede_arctiny WHERE typeid = 7;
3
DELETE
FROM dede_archives WHERE typeid = 7;
顺便说一下,有些时候我们的栏目过多,时间长了会空余很多栏目,这对网站优化有些不友好,所以需要将空栏目删除,或者将栏目合并,大家可以使用下面的SQL语句来执行栏目合并:
1
update dede_archives set typeid=
'70'
where typeid in (93,94,95,96,97)
1
delete
from dede_arctype where id in (93,94,95,96,97)
如果本文对你有帮助,欢迎打赏本站