Metadata about stored routines can be obtained as follows:
Query the
ROUTINES
table of theINFORMATION_SCHEMA
database. See Section 20.14, “TheINFORMATION_SCHEMA ROUTINES
Table”.Use the
SHOW CREATE PROCEDURE
andSHOW CREATE FUNCTION
statements to see routine definitions. See Section 12.4.5.11, “SHOW CREATE PROCEDURE
Syntax”.Use the
SHOW PROCEDURE STATUS
andSHOW FUNCTION STATUS
statements to see routine characteristics. See Section 12.4.5.29, “SHOW PROCEDURE STATUS
Syntax”.