MySQL 8.0 Reference Manual Including MySQL NDB Cluster 8.0

13.1.14 CREATE FUNCTION Syntax

The CREATE FUNCTION statement is used to create stored functions and user-defined functions (UDFs):