【发布时间】:2013-08-28 09:28:12
【问题描述】:
我有一个查询,当我运行它时,我收到错误消息 ORA-00907:缺少括号。当我将 CASE 语句替换为 x = g and 或 y = g and 时,它会按预期运行。
SELECT *
FROM
table1,
table2,
table3,
table4,
table5,
table6,
table7,
table8
WHERE
a = b and
c = d and
e = d and
CASE strfldvar
WHEN 'BROKEN_ARROW' THEN (x = g)
WHEN 'BROKEN_BOX' THEN (y = g)
ELSE -1
end
and
f = h and
i = j
我在这里做错了什么?
【问题讨论】: