sql语句中and,or的运算顺序

查询一:select * from orders where orders_status=‘od’ and reship_type=0 or reship_type=1 查询二:select * from orders where orders_status=‘od’ and (reship_type=0 or reship_type=1) 这两个查询获得的结果不同,缘由在于and和or的优先级同
相关文章
相关标签/搜索