我有以下的oracle語句給編譯錯誤。oracle語句編譯錯誤
v_percent_deceased_households := CASE
WHEN NVL(v_total_households, 0) > 0 THEN
(CAST(NVL(v_deceased_households_count, 0) AS FLOAT(53))
/
CAST(NVL(v_total_households, 0) AS FLOAT(53))) * 100
ELSE 0
END;
錯誤是:
錯誤:
PLS-00103: Encountered the symbol "(" when expecting one of the following:.) @ %
The symbol ")" was substituted for "(" to continue.
Line: 317
Text: (CAST(NVL(v_deceased_households_count, 0) AS FLOAT(53))/CAST(NVL(v_total_households, 0) AS FLOAT(53))) * 100
Error: PLS-00103: Encountered the symbol "(" when expecting one of the following:.) @ %
Line: 317
Text: (CAST(NVL(v_deceased_households_count, 0) AS FLOAT(53))/CAST(NVL(v_total_households, 0) AS FLOAT(53))) * 100
我似乎無法解決這個語法錯誤..