Well, pretty simple question I think, but I can’t find a satisfying answer.
Is there a difference between these two queries?
SELECT * FROM table WHERE column1 = 'x' OR column2 = 'x'
SELECT * FROM table WHERE (column1 = 'x' OR column2 = 'x')
Thanks in advance
Right now there is NO difference in your queries.
There would be difference if there would be
ANDcondition as addition in your query.e.g
and
Note
would be equivalent to
Hope you get the difference.