如何在PhpMyAdmin中列出/查看存储过程

Vya*_*Dev 8 mysql stored-procedures phpmyadmin

我想在PhpMyAdmin中列出或查看创建的存储过程.我已创建了1个存储过程并执行了该操作但是如何查看或修改特定存储过程是否可行,请解释其使用PhpMyAdmin创建存储过程的良好实践或其他方式(任何其他工具)进行编程使用存储过程,我是MySql和PhpMyAdmin的新手.

请帮忙

Nic*_*ssu 9

看一下information_schema.在你的情况下到例程表.

http://dev.mysql.com/doc/refman/5.1/en/routines-table.html

如果要列出所有存储过程,可以使用此查询

select * 
from information_schema.routines
where routine_type = 'procedure'
Run Code Online (Sandbox Code Playgroud)

为了将结果限制为特定数据库:

select * 
from information_schema.routines
where routine_type = 'procedure' and routine_schema = 'your_db'
Run Code Online (Sandbox Code Playgroud)

您可以在routine_definition字段中找到存储过程的内容.

另外看看:

show create procedure stored_procedure_name
Run Code Online (Sandbox Code Playgroud)

您将在"创建过程"字段中找到存储过程内容.