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-02821: Unable to read the requested number of blocks.
ORA-01112: media recovery not started
ORA-19696: controlfile not found in backup set
ORA-25226: dequeue failed, queue string.string is not enabled for dequeue
ORA-08005: specified row does not exist
ORA-12537: TNS:connection closed
2 Answers State Bank Of India SBI,
KUP-03020: empty delimiter specified for record
RMAN-20208: UNTIL CHANGE is before RESETLOGS change
ORA-00129: listener address validation failed 'string'
NNL-00560: Shows or sets the server's request-processing delay
TNS-00086: * reload - ask the Navigator to reload TNSNET.ORA
IMP-00072: Warning: The object table's object identifier is invalid.