List of Stored Functions in a MySQL Database



We can see only the list of stored functions 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 = 'FUNCTION'//
+--------------+--------------------+
| ROUTINE_TYPE | ROUTINE_NAME       |
+--------------+--------------------+
| FUNCTION     | factorial          |
| FUNCTION     | Hello              |
+--------------+--------------------+
2 rows in set (0.07 sec)
Updated on: 2020-06-22T07:59:19+05:30

100 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements