/*单个表每个索引的大小*/ SELECT sum(stat_value) pages, table_name part, index_name, concat(,),'M',' rows') * @@innodb_page_size size FROM mysql.innodb_index_stats WHERE table_name = '你的表名' AND database_name = '你的数据库名' AND stat_description LIKE 'Number of pages…
在mysql中如果想要查看表的定义的话:有如下方式可供选择 1.show create table 语句: show create table table_name; 2.desc table_name 语句: create table person( id int not null auto_increment primary key, name varchar(8), index ix__person__name (name)); desc person; +-------+--------…
在mysql中如果想要查看表的定义的话:有如下方式可供选择 1.show create table 语句: show create table table_name; 2.desc table_name 语句: create table person( id int not null auto_increment primary key, name ), index ix__person__name (name)); desc person; +-------+------------+----…