PLS-00508: The expression in a RETURN statement cannot be a type



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

Post New Answer

More Oracle Errors Interview Questions

ORA-02821: Unable to read the requested number of blocks.

1 Answers  


ORA-01112: media recovery not started

1 Answers  


ORA-19696: controlfile not found in backup set

1 Answers  


ORA-25226: dequeue failed, queue string.string is not enabled for dequeue

1 Answers  


ORA-08005: specified row does not exist

1 Answers  






ORA-12537: TNS:connection closed

2 Answers   State Bank Of India SBI,


KUP-03020: empty delimiter specified for record

1 Answers  


RMAN-20208: UNTIL CHANGE is before RESETLOGS change

1 Answers  


ORA-00129: listener address validation failed 'string'

1 Answers  


NNL-00560: Shows or sets the server's request-processing delay

1 Answers  


TNS-00086: * reload - ask the Navigator to reload TNSNET.ORA

1 Answers  


IMP-00072: Warning: The object table's object identifier is invalid.

1 Answers  


Categories