我有一个带有主键的 InnoDB 表,如下所示:
show create table com_zone;
+----------+----------------------------------------------------------------------------------------------------------------------------+
| Table | Create Table |
+----------+----------------------------------------------------------------------------------------------------------------------------+
| com_zone | CREATE TABLE `com_zone` (
`domain` varchar(70) NOT NULL,
PRIMARY KEY (`domain`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 |
+----------+----------------------------------------------------------------------------------------------------------------------------+
它有大量数据(大约 100 万行),但是,当我检查索引大小时,它显示为零:
SELECT index_length/POWER(1024,1) NDXSIZE FROM INFORMATION_SCHEMA.TABLES WHERE table_schema='zone_import' AND table_name='com_zone';
+---------+
| NDXSIZE |
+---------+
| 0 |
+---------+
那么,当它有 PK 索引时,为什么它显示 '0' 索引大小?