Home > Database > Mysql Tutorial > body text

MySQL Advanced Five—Management of Stored Procedures

黄舟
Release: 2016-12-29 16:35:38
Original
1137 people have browsed it

1. View the stored procedures of the database

For example:

show procedure status where db='caiwu';
Copy after login


2. View the list of stored procedures under the current database

For example:

SELECT specific_name from mysql.proc;
Copy after login

3. View the contents of the stored procedure

, such as:

select specific_name,body from mysql.proc;
Copy after login

4. View the contents of a stored procedure,

, such as:

select specific_name,body from mysql.proc where specific_name = 'p_updatenum';
Copy after login

5. Delete a stored procedure
such as:

drop procedure if exists p_update;
Copy after login

The above is the content of MySQL Advanced Five-Stored Procedure Management. For more related content, please pay attention to the PHP Chinese website (www.php.cn)!


Related labels:
source:php.cn
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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!