1 . Procedures and functions stored in the database query method: SELECT `name` from the mysql.proc WHERE DB = ' your_db_name ' and` type` = ' PROCEDURE ' // stored procedure SELECT `name` from the mysql.proc WHERE DB = ' your_db_name ' and `type` = ' the fUNCTION ' // function method two: Show procedure Status; // stored procedure Show Status function; // function to create a stored procedure to view the code or function show create procedure proc_name; Create function func_name Show; 2 . See view the SELECT * from INFORMATION_SCHEMA.VIEWS // view of the SELECT * from information_schema.tables // Table 3 in trigger. Method a: Syntax: SHOW TRIGGERS [FROM db_name] [ LIKE expr] Example: SHOW TRIGGERS \ G // trigger method two: for INFORMATION_SCHEMA tRIGGERS database table query MySQL > triggers the SELECT * the FROM T = the WHERE trigger_name "mytrigger" \ G
Data Warehousing 010 - MySQL view all stored procedures, functions, views, triggers
Guess you like
Origin www.cnblogs.com/Raodi/p/12052531.html
Recommended
Ranking