How can we see only the list of stored procedures in a particular MySQL database?


We can see only the list of stored procedures in a particular MySQL database by the following query −

mysql> SELECT ROUTINE_TYPE, ROUTINE_NAME FROM INFORMATION_SCHEMA.ROUTINES WHERE
ROUTINE_SCHEMA = 'query'AND ROUTINE_TYPE = 'PROCEDURE'//
+--------------+------------------------+
| ROUTINE_TYPE | ROUTINE_NAME           |
+--------------+------------------------+
| PROCEDURE    | allrecords             |
+--------------+------------------------+
1 row in set (0.05 sec)

Updated on: 22-Jun-2020

91 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements