我想列出或查看在 PhpMyAdmin 中创建的存储过程。我已经创建了 1 个存储过程并执行了它,但是我如何查看或修改特定的存储过程是否可能,请解释使用 PhpMyAdmin 创建存储过程的良好做法或其他编程方式(任何其他工具)对于存储过程,我是 MySql 和 PhpMyAdmin 的新手。
请帮忙
最佳答案
查看 information_schema。在您的例程表中。
http://dev.mysql.com/doc/refman/5.1/en/routines-table.html
如果你想列出所有的存储过程你可以使用这个查询
select *
from information_schema.routines
where routine_type = 'procedure'
为了将结果限制在特定的数据库中:
select *
from information_schema.routines
where routine_type = 'procedure' and routine_schema = 'your_db'
您可以在 routine_definition 字段中找到存储过程的内容。
再看看:
show create procedure stored_procedure_name
您会在“创建过程”字段中找到存储过程内容。
关于mysql - 如何在 PhpMyAdmin 中列出/查看存储过程,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5989978/