select * from tbl where col1=1 or col2=2 and col3=3 等于 select * form tbl where col1=1 or (col2=2 and col3=3) |
sql中and的优先级比or高
最新推荐文章于 2023-09-10 17:29:03 发布
select * from tbl where col1=1 or col2=2 and col3=3 等于 select * form tbl where col1=1 or (col2=2 and col3=3) |