RETURN statement

Returns control from a function with the specified return value.

Syntax

RETURN value ;
Components

value

An expression that evaluates to a value of the same data type as specified in the RETURNS clause of the Create Function statement.

Usage

The Return statement causes the current invocation of the function to finish and returns the value of the expression to the caller. The expression must be of the same data type as specified in the RETURNS clause for the function.