MySQL查看索引、表信息、触发器

查看索引:

select * FROM information_schema.TABLE_CONSTRAINTS ;
select * FROM information_schema.TABLE_CONSTRAINTS WHERE TABLE_NAME=‘table_name’ ;

查看表信息:

show create table table_name;

查看触发器:

SELECT * FROM information_schema.`TRIGGERS`;

 

posted @ 2016-07-27 11:27  raindream  阅读(1399)  评论(0编辑  收藏  举报