FirebirdSQL logo

RETURN

Returns a value from a stored function

Syntax
RETURN value;
Table 1. RETURN Statement Parameter
Argument Description

value

Expression with the value to return;Can be any expression type-compatible with the return type of the function

The RETURN statement ends the execution of a function and returns the value of the expression value.

RETURN can only be used in PSQL functions (stored functions and local sub-functions).