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-31401: change source string is not an existing change source
ORA-29706: incorrect value string for parameter ACTIVE_INSTANCE_COUNT
ORA-14460: only one COMPRESS or NOCOMPRESS clause may be specified
TNS-00032: INTCTL: internal NS error
ORA-12854: Parallel query is not supported on temporary LOBs
ORA-00021: session attached to some other process; cannot switch session
PLS-00336: non-object-table "string" illegal in this context
NNL-00524: Replaces a data item with another data item
QSM-01055: Query Rewrite failed to allocate the necessary materialized view join graph
SQL*Loader-00481: HIDDEN may not be used with non-scalar fields.
ORA-02265: cannot derive the datatype of the referencing column
TNS-00295: Navigator: Security is enabled, you cannot STOP the Navigator