Replies: 3 comments 1 reply
-
Can the same conditions be presented separately |
Beta Was this translation helpful? Give feedback.
-
Select * from Table_Name where (Column1=value1 and Column2=value2 and Column3 = value3 and Column4 = value4) or (Column2=value1 and Column1=value2 and Column3 = value3 and Column4 = value4); where Column3 = value3 and Column4 = value4 and ((Column2=value1 and Column1 = value2) or (Column1=value1 and Column2=value2)) May I ask how to write it using jsstore syntax? |
Beta Was this translation helpful? Give feedback.
-
Select * from Table_Name where Column1=value1 and (Column2=value2 or Column3=value3); |
Beta Was this translation helpful? Give feedback.
-
select({ from: 'Orders', where: [{ customerId: 2, employeeId: 7, type: 1, delete: false }, { or: { customerId: 7, employeeId: 2, type: 1, delete: false } }] })
If there are other conditional queries, should we write two copies in both the outer layer and the or, for example: delete: false, type: 1
Beta Was this translation helpful? Give feedback.
All reactions