I am using MySQL v5.5.27. I usually would write this SELECT statement like this:
SELECT DISTINCT *
FROM table
WHERE something = 'this'
OR something = 'that'
OR something = 'other'
AND thingamajig = 'one'
OR thingamajig = 'two'
But would this SELECT statement provide the exact same result?
SELECT DISTINCT *
FROM table
WHERE something = ('this' OR 'that' OR 'other')
AND thingamajig = ('one' OR 'two')
I have tried running this and it seems to be working. Just want to make sure this second way of doing things won't return errant data in some way that I can't think of.
Thanks for any insight, assistance!