Tag: 逻辑运营

SQL逻辑运算符优先级:和和或

这两个陈述是否相同? SELECT […] FROM […] WHERE some_col in (1,2,3,4,5) AND some_other_expr 和 SELECT […] FROM […] WHERE some_col in (1,2,3) or some_col in (4,5) AND some_other_expr 有什么我可以用来validation这个真理表吗?