frbn@efbs-seafrigo.fr wrote in message news:<3BF51764.8BEAC873@efbs-seafrigo.fr>...
> SELECT * FROM tab WHERE num = x OR num = y;
>
> time: more than 10 mn !!!
>
> num is an integer.
Parsers and optimizers don't always see what's _obvious_ to us.
Have you tried:
SELECT * from tab where num in (x,y);