日期:2014-05-16 浏览次数:20772 次
select `name` from mysql.proc where db = 'your_db_name' and `type` = 'PROCEDURE' //存储过程 select `name` from mysql.proc where db = 'your_db_name' and `type` = 'FUNCTION' //函数
show procedure status; //存储过程 show function status; //函数
show create procedure proc_name; show create function func_name;
SELECT * from information_schema.VIEWS //视图 SELECT * from information_schema.TABLES //表
语法:SHOW TRIGGERS [FROM db_name] [LIKE expr] 实例:SHOW TRIGGERS\G //触发器
mysql>SELECT * FROM triggers T WHERE trigger_name=”mytrigger” \G