要查看MySQL存储过程,可以使用以下命令:
SHOW PROCEDURE STATUS;
SHOW CREATE PROCEDURE procedure_name;
SHOW PROCEDURE STATUS WHERE Name = 'procedure_name';
SELECT ROUTINE_DEFINITION
FROM INFORMATION_SCHEMA.ROUTINES
WHERE ROUTINE_NAME = 'procedure_name' AND ROUTINE_TYPE = 'PROCEDURE';