Sorry if this is a repeat. Which query will run faster? Using mySql.
select fieldA from myTable where fieldB IN (2,4,6,8)
vs
select fieldA from myTable where (fieldB=2 OR fieldB=4 OR fieldB=6 OR fieldB=8)
Since the lists are relatively small, for this it probably wouldnt make such a difference between the two queries, but say it was something like 1000 parameters instead of just 4.