If you preform an if
in PHP it will stop the conditions after the first false in the if-statement.
Has MySQL the same behavior in its where condition?
Suppose I have a query:
SELECT id FROM table_name WHERE row = value AND EXISTS(...)
Will the EXISTS
statement be executed if row = value
is false
?