List of Stored Procedures/Functions Mysql Command

2019-01-08 02:53发布

How can I see the list of the stored procedures or stored functions in mysql command line like show tables; or show databases; commands.

15条回答
劳资没心,怎么记你
2楼-- · 2019-01-08 03:25

As mentioned above,

show procedure status;

Will indeed show a list of procedures, but shows all of them, server-wide.

If you want to see just the ones in a single database, try this:

SHOW PROCEDURE STATUS WHERE Db = 'databasename';
查看更多
男人必须洒脱
3楼-- · 2019-01-08 03:26

use this:

SHOW PROCEDURE STATUS;
查看更多
再贱就再见
4楼-- · 2019-01-08 03:28

Use the following query for all the procedures:

select * from sysobjects 
where type='p'
order by crdate desc
查看更多
登录 后发表回答