我有一个如下所示的 Oracle 选择:
SELECT *
FROM CUSTOMER
WHERE (CUSTOMER_TYPE BETWEEN 100 AND 200
OR CUSTOMER_TYPE = 350
OR CUSTOMER_TYPE BETWEEN 410 AND 520);
我想将其更改为在同一语句中结合多个范围和单个值的评估的东西。以下语法不正确,但是否有一些 Oracle 等价物?
SELECT *
FROM CUSTOMER
WHERE CUSTOMER_TYPE IN (100..200, 350, 410..520);