|
select cmpnt_id from table1 where not exists (select 'x' from table2 where table1.CMPNT_ID=table2.CMPNT_ID ) and PROJ_ID >= 0;
可以出结果,如下
CMPNT_ID
----------
368128
368158
368183
但是如果执行select * from table1 where not exists (select 'x' from table2 where table1.CMPNT_ID=table2.CMPNT_ID ) and PROJ_ID >= 0;就没有结果。。。
|