Return in PL/SQL is similar to Return in Java and has two functions
-
as a clause.Function must have a return value. The usage is as follows
CREATE OR REPLACE FUNCTION [FUNCTION NAME]
RETURN [RETURN TYPE] IS
BEGIN
RETURN returnValue;
END;
-
as a PL/SQL statement. When a procedure calls another procedure, there are multiple
begin ... end
statement blocks in the other procedure and only the statement block that satisfies the condition is executed and returned to the calling site, a false Return is required in the called storage in the process.CREATE OR REPLACE [SUBPROGRAM][NAME]
IS
BEGIN
statement 1;
...
RETURN;
statement 2;
END;