select name from mysql.proc where db = ‘‘ and `type` = ‘PROCEDURE‘ //查询存储过程
select name from mysql.proc where db = ‘‘ and `type` = ‘FUNCTION‘ //查询函数
select name,body_utf8 from mysql.proc where db = ‘‘ and `type` = ‘PROCEDURE‘ and name=‘‘;
原文地址:http://7737197.blog.51cto.com/7727197/1664556