你能帮我在where条件下创建sql查询吗
SELECT * FROM classicmodels.offices t1 INNER JOIN classicmodels.employees t0
ON (t1.officeCode = t0.officeCode) INNER JOIN classicmodels.customers t2 ON
( (t0.employeeNumber = t2.salesRepEmployeeNumber) OR (t0.firstName =
t2.contactFirstName) ) WHERE (t2.creditLimit > 70000) AND (t2.creditLimit <
100000) OR (t0.officeCode = 6)
ORDER BY
t0.firstName ASC
我无法创建请告诉我如何在单个查询中创建 AND 或 OR 两个条件
WHERE (t2.creditLimit > 70000) AND (t2.creditLimit < 100000) OR (t0.officeCode = 6)
如何创建动态查询可能不止一次 AND 条件,也可能不止一次 OR 条件。它的条件是随机的。然后我想创建查询。你能帮助我吗....