where 语句 同时包含 or 和and这种怎么弄

2025年03月26日 02:28
有2个网友回答
网友(1):

没有用 括号的情况下, and优先 where a>b or a>c and a>d 等价于 where a>b or (a>c and a>d) 如果想要先计算or where (a>b or a>c) and a>d

网友(2):

where (A or B) and C