Home > Database > Mysql Tutorial > How can we see only the list of stored procedures in a specific MySQL database?

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

PHPz
Release: 2023-08-26 14:49:05
forward
624 people have browsed it

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

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

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)
Copy after login

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

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