gpt4 book ai didi

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

转载 作者:可可西里 更新时间:2023-11-01 06:32:56 27 4
gpt4 key购买 nike

我想列出或查看在 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/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com