dedecms如何批量删除栏目为2内的所有文章 用sql语句 10

 我来答
zcmsxk
2012-11-01 · TA获得超过184个赞
知道答主
回答量:113
采纳率:100%
帮助的人:184万
展开全部
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)环境设计的高效管理工具。该工具能够简化用户账号的批量创建流程,大幅提高管理员的工作效率。通过导入包含用户信息的文件,管理员可以快速创建多个用户账号,同... 点击进入详情页
本回答由小鹿管家提供
推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询

为你推荐:

下载百度知道APP,抢鲜体验
使用百度知道APP,立即抢鲜体验。你的手机镜头里或许有别人想知道的答案。
扫描二维码下载
×

类别

我们会通过消息、邮箱等方式尽快将举报结果通知您。

说明

0/200

提交
取消

辅 助

模 式