or 优先级 倒数第一 and 优先级 倒数第二 select * from AA where a >1 or b>1 and C>1 等同 select * from AA where a >1 or (b>1 and C>1 ) 所以,用到or和and的时候记住加括号,否则先执行and