发布网友 发布时间:2023-04-01 23:26
共1个回答
热心网友 时间:2023-11-24 04:16
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的栏目和子栏目的所有新闻,如果能查询出来就是没问题的。我这边之前是测试过的了,只是条件不一样而已。
热心网友 时间:2023-11-24 04:16
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的栏目和子栏目的所有新闻,如果能查询出来就是没问题的。我这边之前是测试过的了,只是条件不一样而已。