To obtain metadata about stored routines:
Query the
ROUTINES
table of theINFORMATION_SCHEMA
database. See Section 28.3.30, βThe INFORMATION_SCHEMA ROUTINES Tableβ.Use the
SHOW CREATE PROCEDURE
andSHOW CREATE FUNCTION
statements to see routine definitions. See Section 15.7.7.10, βSHOW CREATE PROCEDURE Statementβ.Use the
SHOW PROCEDURE STATUS
andSHOW FUNCTION STATUS
statements to see routine characteristics. See Section 15.7.7.29, βSHOW PROCEDURE STATUS Statementβ.Use the
SHOW PROCEDURE CODE
andSHOW FUNCTION CODE
statements to see a representation of the internal implementation of the routine. See Section 15.7.7.28, βSHOW PROCEDURE CODE Statementβ.