PLS-00508: The expression in a RETURN statement cannot be a type
Answer / guest
Cause: A datatype specifier was used instead of an
expression in the RETURN statement of a user-defined
function, as shown in the example below. Do not confuse the
RETURN statement, which sets the function identifier to the
result value, with the RETURN clause, which specifies the
datatype of the result value. FUNCTION credit-rating
(acct_no NUMBER) RETURN BOOLEAN IS BEGIN ... RETURN NUMBER;
-- should be an expression END;
Action: Replace the datatype specifier in the RETURN
statement with an appropriate expression.
Please add more information about this Error
| Is This Answer Correct ? | 0 Yes | 0 No |
ORA-07598: spwat: $SETIMR failure
PCC-02449: Cannot type equivalence a UCS2 type
ORA-30681: improper value for argument EXTENSIONS_CMD_SET
ORA-22856: cannot add columns to object tables
RMAN-10006: error running SQL statement: string
ORA-25201: invalid value, VISIBILITY should be ON_COMMIT or IMMEDIATE
ORA-01898: too many precision specifiers
QSM-01018: single table materialized join view rewrite not required
RMAN-06413: channel string does not support proxy copy
ORA-24042: no propagation schedule exists for QUEUE string and DESTINATION string
DRG-11221: Third-party filter indicates this document is corrupted.
QSM-01084: materialized view, string, has anchor, string, not found in query