像这样编写sql的正确语法是什么:
select * from table where (colA = 'value1' or colA = 'value2' ) and colB = 'value3'
???
下面的示例 Nesting Sub Queries 建议您使用simple and 和 or .你试过这个吗?我指的是直截了当的事情,比如:
and
or
table.where(t => ((t.colA === "value1") or (t.colA === "value2")) and (t.colB === "value3"))
这样的代码对我来说似乎很好。