我有一个查询,当我运行它时,我收到错误消息ORA-00907: missing parenthesis。当我用x = g 和或y = g替换CASE语句时,它会按预期运行。
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
我在这里做错了什么?