Home>Article>Database> How can we see only the list of stored functions in a specific MySQL database?

How can we see only the list of stored functions in a specific MySQL database?

王林
王林 forward
2023-09-08 16:53:05 1191browse

我们如何才能只看到特定 MySQL 数据库中存储函数的列表?

With the following query, we can only see the list of stored functions in a specific MySQL database -

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)

The above is the detailed content of How can we see only the list of stored functions in a specific MySQL database?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:tutorialspoint.com. If there is any infringement, please contact admin@php.cn delete