List of Stored Procedures/Functions Mysql Command Line
How can I see the list of the stored procedures or stored functions in mysql command line like show tables;
or show databases;
commands.
Solution 1:
SHOW PROCEDURE STATUS;
SHOW FUNCTION STATUS;
Solution 2:
show procedure status
will show you the stored procedures.
show create procedure MY_PROC
will show you the definition of a procedure. And
help show
will show you all the available options for the show
command.
Solution 3:
For view procedure in name wise
select name from mysql.proc
below code used to list all the procedure and below code is give same result as show procedure status
select * from mysql.proc
Solution 4:
A more specific way:
SHOW PROCEDURE STATUS
WHERE Db = DATABASE() AND Type = 'PROCEDURE'