Home > Database > Mysql Tutorial > How can we view the list of stored procedures in a specific MySQL database with complete information?

How can we view the list of stored procedures in a specific MySQL database with complete information?

王林
Release: 2023-08-22 16:17:19
forward
1366 people have browsed it

How can we view the list of stored procedures in a specific MySQL database with complete information?

We can use mysql.proc to view the list of stored procedures and complete information in a specific MySQL database. The query is as follows:

mysql> Select * from mysql.proc where db = 'query' AND type = 'PROCEDURE' \G
*************************** 1. row ***************************
                  db: query
                name: allrecords
                type: PROCEDURE
       specific_name: allrecords
            language: SQL
     sql_data_access: CONTAINS_SQL
    is_deterministic: NO
       security_type: DEFINER
          param_list:
             returns:
                body: BEGIN
Select * from Student_info;
END
             definer: root@localhost
             created: 2017-11-11 09:56:11
            modified: 2017-11-11 09:56:11
            sql_mode: ONLY_FULL_GROUP_BY,STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUB
STITUTION
             comment:
character_set_client: cp850
collation_connection: cp850_general_ci
        db_collation: latin1_swedish_ci
           body_utf8: BEGIN
Select * from Student_info;
END
1 row in set (0.00 sec)

Copy after login

The above is the detailed content of How can we view the list of stored procedures in a specific MySQL database with complete information?. 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