create table t1(c1 number, c2 number);create table t2(c1 number primary key, c2 number);beginfor i in 1..100 loopinsert into t1 values (decode(mod(i,2), 0 , null, i),i);insert into t2 values(i,i);end loop;end;/commit;
select t1.* from t1 where c1 not in(select c1 from t2);select t1.* from t1 where not exists(select 1 from t2 where t1.c1=t2.c1);




文章转载自扫地僧的故事,如果涉嫌侵权,请发送邮件至:contact@modb.pro进行举报,并提供相关证据,一经查实,墨天轮将立刻删除相关内容。




