Home > Database > Mysql Tutorial > 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?

王林
Release: 2023-09-08 16:53:05
forward
1381 people have browsed it

我们如何才能只看到特定 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)
Copy after login

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!

source:tutorialspoint.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template