EXISTS 运算符
该语法可以理解为:将主查询的数据,放到子查询中做条件验证,根据验证结果(TRUE 或 FALSE)来决定主查询的数据结果是否得以保留。
https://blog.csdn.net/xiangwang2016/article/details/88204331
SQL EXISTS 语法
https://www.nowcoder.com/practice/c39cbfbd111a4d92b221acec1c7c1484?tpId=82&tags=&title=&difficulty=0&judgeStatus=0&rp=1
select * from employees em where not exists (select * from dept_emp a where em.emp_no= a.emp_no)
浙公网安备 33010602011771号