用dedecms采集时标题字段设置错了,出现了注释符号<!---->,导致后台的文章列表出现错误,也无法直接从列表中删除,可以远程登录数据库去操作,这个相对比较麻烦,想着直接从后台的SQL命令行工具删除。修改前先做好备份,以防万一。找到“系统” - 系统设置 - SQL命令行工具删除,输入如下代码
DELETE FROM dede_addonarticle WHERE aid =347;
DELETE FROM dede_arctiny WHERE id =347;
DELETE FROM dede_archives WHERE id =347;
这样就能删除那篇文章了,如果要删除多篇文章怎么办?
DELETE FROM `dede_addonarticle` WHERE `aid` >=300 AND `aid` <=500;
DELETE FROM `dede_arctiny` WHERE `aid` >=300 AND `aid` <=500;
DELETE FROM `dede_archives` WHERE `aid` >=300 AND `aid` <=500;
相关文章: