Why can't consecutive OR statements with common columns be reduced to IN? (I say consecutive since I assume ordering matters).
WHERE id = 1 OR id = 2... Should be abled to be reduced to WHERE id IN (1,2...)
However WHERE id = 1 OR name = 'John' OR id = 2 Maybe can't be reduced to WHERE id IN (1,2) OR name = 'John'
[dead]
Why can't consecutive OR statements with common columns be reduced to IN? (I say consecutive since I assume ordering matters).
WHERE id = 1 OR id = 2... Should be abled to be reduced to WHERE id IN (1,2...)
However WHERE id = 1 OR name = 'John' OR id = 2 Maybe can't be reduced to WHERE id IN (1,2) OR name = 'John'