Stored Functions

A stored function is a defined function that is called from within an SQL statement like a regular function, and returns a single value.

Title Description
Stored Function Overview Function called from within an SQL statement, returning a single value
Stored Routine Privileges Privileges associated with stored functions and stored procedures.
CREATE FUNCTION Creates a stored function.
ALTER FUNCTION Change the characteristics of a stored function.
DROP FUNCTION Drop a stored function.
SHOW CREATE FUNCTION Statement that created the function
SHOW FUNCTION STATUS Stored function characteristics
SHOW FUNCTION CODE Representation of the internal implementation of the stored function
Stored Aggregate Functions Custom aggregate functions.
Binary Logging of Stored Routines Stored routines require extra consideration when binary logging.
Stored Function Limitations Restrictions applying to stored functions
Information Schema ROUTINES Table Stored procedures and stored functions information
Content reproduced on this site is the property of its respective owners, and this content is not reviewed in advance by MariaDB. The views, information and opinions expressed by this content do not necessarily represent those of MariaDB or any other party.

© 2021 MariaDB
Licensed under the Creative Commons Attribution 3.0 Unported License and the GNU Free Documentation License.
https://mariadb.com/kb/en/stored-functions/