
dedecms如何批量删除栏目为2内的所有文章 用sql语句 10
1个回答
展开全部
delete from dede_archives where typeid in(select id from dede_arctype where topid in(select id from dede_arctype where typename='2')) or typeid in(select id from dede_arctype where typename='2')
这样写应该没错了,你自己再检查一下。
这样写应该没错了,你自己再检查一下。
追问
不对啊,
追答
你看看这条
select * from dede_archives where typeid in(select id from dede_arctype where topid in(select id from dede_arctype where typename='2')) or typeid in(select id from dede_arctype where typename='2')
查询出来栏目名为2的栏目和子栏目的所有新闻,如果能查询出来就是没问题的。我这边之前是测试过的了,只是条件不一样而已。
已赞过
已踩过<
评论
收起
你对这个回答的评价是?

2025-03-12 广告
AD账户批量创建工具是河南九维网络科技有限公司针对Active Directory(AD)环境设计的高效管理工具。该工具能够简化用户账号的批量创建流程,大幅提高管理员的工作效率。通过导入包含用户信息的文件,管理员可以快速创建多个用户账号,同...
点击进入详情页
本回答由小鹿管家提供
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询