User-Defined SQL Functions

User-defined SQL functions allow you to create and store commonly-used SQL statements. You can use a user-defined SQL function anywhere in a query where an ordinary SQL statement can be used. You need USAGE privileges on the schema and EXECUTE privileges on the function to run a user-defined SQL function.

For information on creating and managing user-defined SQL functions see Using User-Defined SQL Functions.