A database function is a subprogram that runs in the database kernel and gets a result value.
When you formulate a database function, you use the language specified when you formulate database procedures. Unlike database procedures, database functions are not executed by an explicit EXECUTE. Instead, they are executed by a function call of an SQL statement (see Database Function Call).
See also: