mysql 查询数据库中的存储过程与函数的语句
时间:2024-01-26 17:30:35
方法一:
select `name` from mysql.proc where db = 'your_db_name' and `type` = 'PROCEDURE' //存储过程
select `name` from mysql.proc where db = 'your_db_name' and `type` = 'FUNCTION' //函数
方法二:
show procedure status; //存储过程
SHOW PROCEDURE STATUS WHERE db='servant_591up'
show function status; //函数
查看存储过程或函数的创建代码
show create procedure proc_name;
show create function func_name;
查看视图
SELECT * from information_schema.VIEWS //视图
SELECT * from information_schema.TABLES //表
查看触发器
方法一:
语法:SHOW TRIGGERS [FROM db_name] [LIKE expr]
实例:SHOW TRIGGERS\G //触发器
方法二:
对INFORMATION_SCHEMA数据库中的TRIGGERS表查询
mysql>SELECT * FROM triggers T WHERE trigger_name=”mytrigger” \G
标签:存储过程,函数
![](/images/zang.png)
![](/images/jiucuo.png)
猜你喜欢
Python入门:认识列表和元组
2022-11-06 02:18:42
ASP和MYSQL开发网站的注意事项
2009-08-21 13:23:00
Python快速转换numpy数组中Nan和Inf的方法实例说明
2021-11-12 06:24:03
go语言base64用法实例
2024-04-26 17:22:04
对Python实现简单的API接口实例讲解
2023-11-20 03:27:04
![](https://img.aspxhome.com/file/2023/3/90663_0s.jpg)
Python statistics模块示例详解
2023-01-27 11:49:47
python numpy 中linspace函数示例详解
2021-12-12 01:47:59
![](https://img.aspxhome.com/file/2023/7/86177_0s.png)
将Sql Server对象的当前拥有者更改成目标拥有者
2024-01-13 04:41:00
Python判断是否json是否包含一个key的方法
2023-02-25 02:58:40
Python中asyncio模块的深入讲解
2022-05-18 22:33:53
Django添加bootstrap框架时无法加载静态文件的解决方式
2023-04-16 07:27:44
![](https://img.aspxhome.com/file/2023/0/101110_0s.jpg)
超轻量级MSXML多功能测试程序
2009-05-19 12:38:00
![](https://img.aspxhome.com/file/UploadPic/20095/19/20090513224141384-92s.gif)
Python多线程通信queue队列用法实例分析
2023-09-22 21:11:44
![](https://img.aspxhome.com/file/2023/4/93784_0s.png)
让大家看看Object标签的强大功能---多用途
2009-02-21 10:18:00
可以自动轮换的页签 tabs
2008-02-21 12:25:00
ASP SCRIPT: 计数器(使用GrapShot组件)
2008-11-07 15:36:00
sqlalchemy对象转dict的示例
2022-08-24 00:08:34
Python接口自动化浅析unittest单元测试原理
2023-10-02 08:12:32
![](https://img.aspxhome.com/file/2023/6/128766_0s.png)
mysql出现10061错误解决办法
2010-07-04 13:36:00
解决pycharm运行时interpreter为空的问题
2022-04-01 22:56:39
![](https://img.aspxhome.com/file/2023/4/103354_0s.jpg)