Dear all,
I have a set of large values that need to be compared in mysql.
May I know which is faster? For example:
Opt 1:
SELECT * FROM table WHERE v = 1 or v = 2 or v = 3 or v = 4 or... v = 100
Opt 2:
SELECT * FROM table WHERE v IN (1,2,3,4,5,6,7,8,...,100)
May I know which option is faster for large value? Is there any better solution? Thank you.