千鋒教育-做有情懷、有良心、有品質(zhì)的職業(yè)教育機(jī)構(gòu)
1)請(qǐng)優(yōu)化: select a.key,a.value from a where a.key not in (select b.key from b)
2)已優(yōu)化: select t1.key,t1.value from ( select a.key,a.value from a ) t1 right join ( select b.key from b ) t2 on t1.key = t2 .key where t1.key is null;
3)請(qǐng)優(yōu)化: select a.key,a.value from a where a.key in (select b.key from b)
4)已優(yōu)化: select t1.key,t1.value from ( select a.key,a.value from a ) t1 join ( select b.key from b ) t2 on t1.key = t2 .key;
下一篇
垃圾回收機(jī)制(算法原理)相關(guān)推薦