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-22980: must specify a set of attributes for the WITH OBJECT OID clause
NNL-00282: Cancelled restart
ORA-12407: unauthorized operation for policy string
ORA-06573: Function string modifies package state, cannot be used here
RMAN-08538: channel string: no autobackup in string days found
LFI-00122: Can only delete a file if we create it.
ORA-02458: HASHKEYS must be specified for a HASH CLUSTER
TNS-01073: Listening on: string
DRG-52100: %(1)s returned internal error code string
TNS-01096: %s * string * string * string * string * number
ORA-33448: (ESDREAD04) Discarding compiled code for workspace object because number now has string data, whereas it had string data when the code was compiled.
ORA-07266: sppst: invalid process number passed to sppst.