Possible Duplicate:
MYSQL OR vs IN performance
I was wondering whats the difference between:
SELECT * FROM table WHERE cat = 'cat1' OR cat = 'cat2' OR cat = 'cat3'
And:
SELECT * FROM table WHERE cat in ('cat1', 'cat2', 'cat3')
Is there any difference? As I tried they both give out same result.