I want to list or view created stored procedure in PhpMyAdmin. I have created 1 stored procedure and execute that also but how can i view or modify particular stored procedure is it possible or not and please explain its good practise to create stored procedure using PhpMyAdmin or what are the other ways(any other tool) to program with stored procedures , i am new to MySql and PhpMyAdmin .

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

Please Help

1 个解决方案

#1


9

Take a look at the information_schema. In your case to the routines table.

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

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

If you want to list all stored procedures you can use this query

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

select * 
from information_schema.routines
where routine_type = 'procedure'

In order to limit the result to a specific database:

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

select * 
from information_schema.routines
where routine_type = 'procedure' and routine_schema = 'your_db'

You can find the content of your stored procedures within the routine_definition field.

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

Moreover take a look at:

另外看看:

show create procedure stored_procedure_name

you'll find stored procedure content within 'Create Procedure' field.

您将在“创建过程”字段中找到存储过程内容。

更多相关文章

  1. 保持最新的一个字段值,直到它发生变化,然后保持其最新的字段值
  2. 替换wordpress WP_POSTS表中post_date字段的年份(4位数)
  3. 如何以varchar字段为编号?
  4. 常见几种数据库中自增字段的设置方法(转)
  5. 有没有办法阻止使用类似Firebug的工具在页面中编辑HTML和CSS内容
  6. 如何使用显示滚动内容?
  7. 在鼠标悬停事件中使用Javascript隐藏内容
  8. 如何使用jQuery将输入值插入更多填充的字段?
  9. javascript相关小内容

随机推荐

  1. Mono For Android 中重要的命名空间
  2. Android中创建对话框(确定取消对话框、单
  3. 横竖屏切换时候activity的生命周期 andro
  4. android 处理运行时改变 开发文档翻译
  5. Android(安卓)应用开发的耗电量控制
  6. 疯狂Android讲义(第2版)
  7. android/c++ opencv 攻坚篇(一) ndk运行
  8. android ART-逆向研究者的福音?
  9. 我所理解的Android模块化(四)——常见问题
  10. Android开发之--脚本编程