> ## Documentation Index
> Fetch the complete documentation index at: /documents/llms.txt
> Use this file to discover all available pages before exploring further.

# routines

> Information schema placeholder view not implemented in the database.

**Note**

This view does not apply to the available features in the database.

`routines` contains all stored routines (stored procedures and stored functions).

The following fields are provided in `routine`:

| **Field** | **Description** |
| - | - |
| SPECIFIC\_NAME | The name of the routine. |
| ROUTINE\_CATALOG | The name of the catalog to which the routine belongs. This value is always `def`. |
| ROUTINE\_SCHEMA | The name of the database to which the routine belongs. |
| ROUTINE\_NAME | The name of the routine. |
| ROUTINE\_TYPE | `PROCEDURE` for stored procedures, `FUNCTION` for stored functions. |
| DTD\_IDENTIFIER | If the routine is a stored function, the return value data type. If the routine is a stored procedure, this value is empty. |
| ROUTINE\_BODY | The language used for the routine definition. This value is always `SQL`. |
| ROUTINE\_DEFINITION | The text of the SQL statement executed by the routine. |
| EXTERNAL\_NAME | This value is always `NULL`. |
| EXTERNAL\_LANGUAGE | The language of the stored routine. |
| PARAMETER\_STYLE | This value is always `SQL`. |
| IS\_DETERMINISTIC | `YES` or `NO`, depending on whether the routine is defined with the `DETERMINISTIC` characteristic. |
| SQL\_DATA\_ACCESS | The data access characteristic for the routine. The value is one of `CONTAINS SQL`, `NO SQL`, `READS SQL DATA`, or `MODIFIES SQL DATA`. |
| SQL\_PATH | This value is always `NULL`. |
| SECURITY\_TYPE | The routine `SQL SECURITY` characteristic. The value is one of `DEFINER` or `INVOKER`. |
| CREATED | The date and time when the routine was created. This is a `DATETIME` value. |
| LAST\_ALTERED | The date and time when the routine was last modified. This is a `DATETIME` value. If the routine has not been modified since its creation, this value is the same as the `CREATED` value. |
| SQL\_MODE | The SQL mode in effect when the routine was created or altered, and under which the routine executes. |
| ROUTINE\_COMMENT | The text of the comment, if the routine has one. If not, this value is empty. |
| DEFINER | The user named in the `DEFINER` clause (often the user who created the routine). |
| CHARACTER\_SET\_CLIENT | |
| COLLATION\_CONNECTION | |
| DATABASE\_COLLATION | The collation of the database with which the routine is associated. |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.