PLS-00372: In a procedure, RETURN statement cannot contain
an expression

Answer Posted / guest

Cause: In a procedure, a RETURN statement contains an
expression, which is not allowed. In functions, a RETURN
statement must contain an expression because its value is
assigned to the function identifier. However, in procedures,
a RETURN statement simply lets you exit before the normal
end of the procedure is reached.

Action: Remove the expression from the RETURN statement, or
redefine the procedure as a function.

Please add more information about this Error

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

IMP-00096: Warning: Skipping table "string"."string" because type synonym "string"."string" cannot be created

1324


ORA-16627: No standby databases support the overall protection mode.

3648


invalid quantity specification negative quantity are not allowed for this item please check this item definition quantity

2982


if the lengths of two wires are same and the area of cross sections is 4:7 then what will be the ratio of current passing through these wires

2327


RMAN-05017: no copy of datafile number found to recover

1999






ORA-26084: direct path context already finished

1589


ORA-07497: sdpri: cannot create trace file 'string'; errno = string.

2427


ORA-26032: index string.string loading aborted after string keys

1739


NZE-28890: Entrust Login Failed

1488


ORA-26029: index string.string partition string initially in unusable state

1816


ORA-26095: unprocessed stream data exists

3051


IMP-00070: Lob definitions in dump file are inconsistent with database.

1390


ORA-16516: The current state is invalid for the attempted operation.

8259


ORA-26079: file "string" is not part of table string.string

1604


IMP-00063: Warning: Skipping table "string"."string" because object type "string"."string" cannot be created or has different identifier

2400