SELECT ename
, job
, CASE deptno
WHEN 10
THEN 'ACCOUNTS'
WHEN 20
THEN 'SALES'
ELSE 'UNKNOWN'
END AS department
FROM emp /* !!! */
WHERE department = 'SALES'
这将失败:
ORA-00904:“%s:无效的标识符”
有没有一种方法可以克服Oracle 10.2 SQL中的此限制?如何在where子句中使用“ case expression column”?
Cats萌萌
Qyouu
冉冉说
相关分类