今天针对oracle里面not in 和not exists专门做了个性能测试: 条件:oracle10g,表A 有记录数3243条,表B有记录数943条。 测试工具:Yourkit 6.0 。 测试sql如下 select * from A where not exists ( select * from B where A.id = B.id )和 select * from A where A.id not in ( select * from B) not exists 的结果如下图:执行了 193 ms |
联系客服