Possible Duplicate:
Why would an IN condition be slower than “=” in sql?
Is there any performance difference between doing:
SELECT foo FROM bar WHERE id IN (4)
Versus
SELECT foo FROM bar WHERE id = 4
Possible Duplicate:
Why would an IN condition be slower than “=” in sql?
Is there any performance difference between doing:
SELECT foo FROM bar WHERE id IN (4)
Versus
SELECT foo FROM bar WHERE id = 4
I believe the MySQL optimizer will convert the id IN(4) to id = 4, so no performance difference