exists,in,minus的总结,等待补遗
简单测试了一下这三个的特点,总结了一下,也许不太对,等待继续观察和大业务测试。[@more@]1)exists 和 not exists 用法select * from a where exists (select * from b where a.id=b.id); 找A表在B表存在的记录select * from a where not exists (select * from b where a.id=b.id); 找A表不存在于B表的记录看下执行计划:PLAN_TABLE_OUTPUT----------------------------------------------------------------------------------------------------------------------------------------------------| Id | Operation