【发布时间】:2011-05-21 09:59:11
【问题描述】:
检查在“不在”条件下具有多个选择语句的子查询
例如。
select id from tbl where
id not in (select id from table1) and
id not in (select id from table2) and
id not in (select id from table3)
我需要子查询,而不是重复相同的 id 'not in' 条件,该子查询将从多个表中一次检查..
请帮忙..
【问题讨论】:
-
您看似紧迫的问题已在下方得到解答.....
标签: sql subquery correlated-subquery