码迷,mamicode.com
首页 > 数据库 > 详细

mysql表的核心元数据

时间:2018-08-20 17:54:16      阅读:233      评论:0      收藏:0      [点我收藏+]

标签:option   div   comment   create   innodb   avg   prim   column   records   

索引的

mysql> show indexes from recordsInRangeTest;
+--------------------+------------+--------------+--------------+-------------+-----------+-------------+----------+--------+------+------------+---------+---------------+
| Table              | Non_unique | Key_name     | Seq_in_index | Column_name | Collation | Cardinality | Sub_part | Packed | Null | Index_type | Comment | Index_comment |
+--------------------+------------+--------------+--------------+-------------+-----------+-------------+----------+--------+------+------------+---------+---------------+
| recordsInRangeTest |          0 | PRIMARY      |            1 | id          | A         |       24290 |     NULL | NULL   |      | BTREE      |         |               |
| recordsInRangeTest |          1 | idx_name     |            1 | name        | A         |          12 |     NULL | NULL   | YES  | BTREE      |         |               |
| recordsInRangeTest |          1 | idx_age      |            1 | age         | A         |          12 |     NULL | NULL   | YES  | BTREE      |         |               |
| recordsInRangeTest |          1 | idx_age_name |            1 | name        | A         |          12 |     NULL | NULL   | YES  | BTREE      |         |               |
| recordsInRangeTest |          1 | idx_age_name |            2 | age         | A         |          22 |     NULL | NULL   | YES  | BTREE      |         |               |
+--------------------+------------+--------------+--------------+-------------+-----------+-------------+----------+--------+------+------------+---------+---------------+
5 rows in set (0.00 sec)

表本身的

+--------------------+--------+---------+------------+-------+----------------+-------------+-----------------+--------------+-----------+----------------+---------------------+-------------+------------+-------------------+----------+----------------+---------+
| Name               | Engine | Version | Row_format | Rows  | Avg_row_length | Data_length | Max_data_length | Index_length | Data_free | Auto_increment | Create_time         | Update_time | Check_time | Collation         | Checksum | Create_options | Comment |
+--------------------+--------+---------+------------+-------+----------------+-------------+-----------------+--------------+-----------+----------------+---------------------+-------------+------------+-------------------+----------+----------------+---------+
| recordsInRangeTest | InnoDB |      10 | Compact    | 24290 |             65 |     1589248 |               0 |      1425408 |   4194304 |          28660 | 2018-06-09 09:29:26 | NULL        | NULL       | latin1_swedish_ci |     NULL |                |         |
+--------------------+--------+---------+------------+-------+----------------+-------------+-----------------+--------------+-----------+----------------+---------------------+-------------+------------+-------------------+----------+----------------+---------+

 

mysql表的核心元数据

标签:option   div   comment   create   innodb   avg   prim   column   records   

原文地址:https://www.cnblogs.com/youge-OneSQL/p/9506906.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!