google搜了一下,很多帖子,而且出发点不同,各有各的道理,但是有一个帖子讲的特别好:http://zhidao.baidu.com/question/134174568.html忍不住在百度上回复了一下,怒赞,没想到别人早就回复过了:围观大神级回答。确实名副其实!================in和exists=============================in 是把外表和内表作hash 连接,而exists是对外表作loop循环,每次loop循环再对内表进行查询。如果两个表中一个较小,一个是大表,则子查询表大的用exists,子查询表小的用in:例如:表A(小表),表B(大表 Read More
posted @ 2013-12-25 21:14 findumars Views(940) Comments(0) Diggs(0)