2015年1月9日
摘要: 有两个简单例子,以说明 “exists”和“in”的效率问题1) select * from T1 where exists(select 1 from T2 where T1.a=T2.a) ; T1数据量小而T2数据量非常大时,T1>T2 时,2) 的查询效率高。exists 用法:请注意 1)... 阅读全文
posted @ 2015-01-09 10:22 little fat 阅读(5001) 评论(0) 推荐(0) 编辑