sql中and or优先级

sql在查询 a or b and c 时,and的优先级高于 or。

实际效果是 a or (b and c)。

后来发现 sql语法也是可以用括号的。

有了括号就可以很方便的规定优先级了..

原文地址:https://www.cnblogs.com/ljmin/p/2601830.html