Hi everybody, I have very simple select like this:
SELECT * FROM table
WHERE column1 IN (5, 20, 30);
on column1 is seted index, after explaining query is index used, all looks to be ok.
but if there are more than three values in range, like this:
SELECT * FROM table
WHERE column1 IN (5, 20, 30, 40);
index is not used and select runs thru all records. Am I doing something wrong? thanks