A procedure can be exited prematurely by issuing the RETURN keyword at any point in the procedure.
For the full syntax of the CREATE PROCEDURE statement, see CREATE PROCEDURE.
When this keyword is met, control is directly handed to the calling program and the values that are bound to the result set column names (as indicated in the RETURNS section of the procedure definition) are returned.