oracle in and exists difference

in和exists

 http://oraclemine.com/sql-exists-vs-in/

https://www.techonthenet.com/oracle/exists.php

 https://www.techrepublic.com/article/oracle-tip-understand-the-difference-between-in-and-exists-in-subqueries/

 

exists

1) there exists data engine stop process conditions sql

2) sub-query result set is faster than in the big time

3) null condition exists by comparing may

4) All results outer subquery (subquery traversing the outer query-by to perform the query)

5) exists outside the first query and then sub-queries, faster in most cases exists, because you can use the index. but

Sub-hour results in better performance.

in

1) sql engine compares the value in all conditions

2) Results subset hours faster than exists

3) null can not be in comparison

4) in = inside to outside and then query the first sub-outer query

Guess you like

Origin www.cnblogs.com/cslj2013/p/11456052.html