第一可能 contract_no 有null值 第二把第三句重写: select contract_no from contract where (contract_no not in (select contract_no from orders))
都不是! 第一,我的contract_no 不存在NULL值; 第二,select contract_no from contract where (contract_no not in (select contract_no from orders)) 和 select contract_no from contract where not (contract_no in (select contract_no from orders)) 语句其实是一样的。
第二把第三句重写:
select contract_no from contract where (contract_no not in (select contract_no from orders))
第一,我的contract_no 不存在NULL值;
第二,select contract_no from contract where (contract_no not in (select contract_no from orders)) 和
select contract_no from contract where not (contract_no in (select contract_no from orders)) 语句其实是一样的。