return
SQL/PL
Return results
Syntax
return_stmt: RETURN {value_expr | NULL}
Description
The RETURN statement is used only within a CREATE FUNCTION to return the function's result value to the statement which invoked it. The data type returned by expression must be compatible with the function's declared type.