SQL Logic Operator Precedence: And and Or
Posted
by nc
on Stack Overflow
See other posts from Stack Overflow
or by nc
Published on 2009-08-06T20:15:22Z
Indexed on
2010/04/07
2:03 UTC
Read the original article
Hit count: 451
Are the two statements below equivalent?
SELECT [...] FROM [...] WHERE some_col in (1,2,3,4,5) AND some_other_expr
and
SELECT [...] FROM [...] WHERE some_col in (1,2,3) or some_col in (4,5) AND some_other_expr
Is there some sort of truth table I could use to verify this? Thanks.
© Stack Overflow or respective owner