exists is followed by a subquery
The following two tables are used as examples to demonstrate the id in table a Associated with aid in table b
exists function is to check whether the result of the subquery is true. If the subquery is true, the outer SQL statement is executed. exists does not return data, only returns true or false
If it returns false, the outer SQL statement will not be executed
The above is the detailed content of What is the usage of exists in oracle?. For more information, please follow other related articles on the PHP Chinese website!