The above two simple SQL, we understand from the surface, the final result of the query should be the same, but the actual result is not the same as we think
The result of the first SQL query has a single data
The result of the second SQL query is empty
Reason:
A subquery of not exists that is different for a subquery that does not return rows or rows returned by a subquery
These small differences must not be overlooked by us, and once the project is large, the time it takes to track down a specific error is considerable. Try to nip these unnecessary mistakes in the cradle.
Wordy, hehe.
The above two simple SQL, we understand from the surface, the final result of the query should be the same, but the actual result is not the same as we think
The result of the first SQL query has a single data
The result of the second SQL query is empty
Reason:
A subquery of not exists that is different for a subquery that does not return rows or rows returned by a subquery
These small differences must not be overlooked by us, and once the project is large, the time it takes to track down a specific error is considerable. Try to nip these unnecessary mistakes in the cradle.
Wordy, hehe.