IN
is preferable to OR
— OR
is a notoriously bad performer, and can cause other issues that would require using parenthesis in complex queries.
Better option than either IN
or OR
, is to join to a table containing the values you want (or don’t want). This table for comparison can be derived, temporary, or already existing in your schema.