跳转到内容

条件 OR 运算符。检查两个条件中是否有任一条件为真。

or_(<expr1>[, <expr2> ...])
or_(
table.color == 'green',
table.shape == 'circle',
table.price >= 1.25
)
<expr1> OR <expr2>
SELECT * FROM table WHERE
table.color = 'green'
OR table.shape = 'circle'
OR table.price >= 1.25;