# Stored Functions

- [Stored Function Overview](https://mariadb.com/docs/server/server-usage/stored-routines/stored-functions/stored-function-overview.md): A Stored Function is a set of SQL statements that can be called by name, accepts parameters, and returns a single value, enhancing SQL with custom logic.
- [Stored Aggregate Functions](https://mariadb.com/docs/server/server-usage/stored-routines/stored-functions/stored-aggregate-functions.md): Stored Aggregate Functions allow users to create custom aggregate functions that process a sequence of rows and return a single summary result.
- [Stored Routine Privileges](https://mariadb.com/docs/server/server-usage/stored-routines/stored-functions/stored-routine-privileges.md): This page explains the privileges required to create, alter, execute, and drop stored routines, including the automatic grants for creators.
- [DROP FUNCTION](https://mariadb.com/docs/server/server-usage/stored-routines/stored-functions/drop-function.md): The DROP FUNCTION statement removes a stored function from the database, deleting its definition and associated privileges.
- [Stored Function Limitations](https://mariadb.com/docs/server/server-usage/stored-routines/stored-functions/stored-function-limitations.md): This page details the restrictions on stored functions, such as the inability to return result sets or use transaction control statements.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://mariadb.com/docs/server/server-usage/stored-routines/stored-functions.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
