Exists Not Exists and use

Description: exists represents subquery () statement returns the result is not inside the empty explain where the conditions will be set up to perform the main sql statement, if it is empty it means that where conditions are not met, sql statement will not be executed. not contrary exists and exists, sub-query result is empty, it means that where conditions are satisfied, the implementation of sql statement. It is not responsible for execution.

use:

 

 

 

Guess you like

Origin www.cnblogs.com/lovelySteelPot/p/11454580.html