mysql 查看function或者procedure的详细信息

文章介绍了在数据库中获取存储过程或函数详细信息的三种方法:使用showcreatefunction命令,showprocedurestatus语句,以及查询information_schema.Routines表。示例查询展示了如何按创建时间降序获取前10个存储过程,以及如何定位名为show_salary的存储过程或函数。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

查看存储过程或者函数的详细信息如下三种方式

1 .show create function 函数名字;

2. show procedure  status like '%show_salary%'; 

3.select * from information_schema.Routines where routine_name =  'show_salary'

 举例:

select * from information_schema.Routines order by  created  desc limit 10 

这条语句可以查看创建的存储过程或者函数的详细信息

 select * from information_schema.Routines where routine_name =  'show_salary' and routine_type = 'PROCEDURE'


 

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值