Skip to main content
You can use the information_schema.routines view to return information about SQL functions including their database, schema, name, type, return data type, parameter data types, and whether they are deterministic. Example The following code example lists all aggregate functions in the database and displays their name, parameters, and return data type, sorted by function name:
Example The following code example retrieves the names of all routines from the database that return a data type of GEOGRAPHY:

Columns in information_schema.routines

Each row in information_schema.routines contains the following information about the SQL function: