语句1:
select * from tab
where f1>0 or f2>0 and f3 not in (select f from tab2)语句2:
select * from tab
where f1>0 and f3 not in (select f from tab2) or f2>0两句的差别只是where条件中的先后顺序,但搜索出来的结果不同。
但我的理解是:没有在条件中加括号标明顺序时,条件的先后变化,所得的记录集结果应该都是一样的。请问什么原因?