1. View the stored procedure
1.show procedure status; //View all 2.show create procedure proc_AllUser[proc_name]; View the specific information of the stored procedure proc_AllUser 3.select 'name' from mysql.proc where db = 'test' and 'type' = 'PROCEDURE'; eg select * from mysql.proc where db = 'sfjc' and type = 'PROCEDURE'; //View stored procedure select * from mysql.pro where db = 'sfjc' and type = 'function'; //View function
2. View function
1.show function status; //Compared to the following, there is less information to view, just some status information 2.select * from mysql.proc where db= 'test' and type = 'function'; //Can be used as a view table
3. View view
1.select * from information_schema.VIEWS;
4. View table
1.select * from information_schema.TABLES;
5. View triggers
1.语法:SHOW TRIGGERS [FROM db_name] [LIKE expr] Example: mysql>SHOW TRIGGERS \G; //View triggers (In actual combat, '\G' is added: it is useless under the client, and it is feasible to operate the command in cmd, which is used for vertical display) eg show triggers from sfjc where definer like 'bghc%'; //Show definer starting with bghc show create trigger sfjc_dj_djlxr_before_update[trigger_name]; 2. Query the TRIGGERS table in the INFORMATION_SCHEMA database mysql>SELECT * FROM triggers T WHERE trigger_name=”mytrigger” \G select * from triggers where trigger_name like 'sfjc_dj%';
http://weidongke123-126-com.iteye.com/blog/1675375 (viewable)