# 查看全部
## 存储过程
show procedure status;
## 函数
show function status;
# 查看指定数据库
## 存储过程
show procedure status where db = 'your_db_name';
select `name` from mysql.proc where db = 'your_db_name' and `type` = 'PROCEDURE';
## 函数
show function status where db = 'your_db_name';
select `name` from mysql.proc where db = 'your_db_name' and `type` = 'FUNCTION';
# 删除
## 存储过程
drop procedure if exists your_procedure_name;
## 函数
drop function if exists your_function_name;
# 查看创建代码
## 存储过程
show create procedure your_procedure_name;
## 函数
show create function your_function_name;