To obtain metadata about stored routines:
- Query the - ROUTINEStable of the- INFORMATION_SCHEMAdatabase. See Section 28.3.36, “The INFORMATION_SCHEMA ROUTINES Table”.
- Use the - SHOW CREATE PROCEDUREand- SHOW CREATE FUNCTIONstatements to see routine definitions. See Section 15.7.7.11, “SHOW CREATE PROCEDURE Statement”.
- Use the - SHOW PROCEDURE STATUSand- SHOW FUNCTION STATUSstatements to see routine characteristics. See Section 15.7.7.31, “SHOW PROCEDURE STATUS Statement”.
- Use the - SHOW PROCEDURE CODEand- SHOW FUNCTION CODEstatements to see a representation of the internal implementation of the routine. See Section 15.7.7.30, “SHOW PROCEDURE CODE Statement”.