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



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

Answer / 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

More Oracle Errors Interview Questions

ORA-19727: cannot plug data [string] at level string into database running Oracle string

1 Answers  


AMD-00100: not found: string "string"

1 Answers   Wipro,


ORA-12093: invalid interim table "string"."string"

2 Answers  


ORA-28301: Domain Policy hasn't been registered for SSL authentication.

1 Answers  


DRG-10851: Invalid grammar string specified for query template

1 Answers  


SQL-02138: No external procedure context exists

1 Answers  


ORA-06122: NETTCP: setup failure

1 Answers  


ORA-01693: max # extents (string) reached in lob segment string.string

1 Answers  


ORA-02728: osnfop: access error on oracle executable

1 Answers  


LCD-00114: illegal boolean response [string]

1 Answers  


ORA-02402: PLAN_TABLE not found

1 Answers  


SQL*Loader-00273: READBUFFERS may be used only in direct path.

1 Answers  


Categories