当前位置:软件学习 > ISA >>

InnoDB和MyISAM都是密集索引?

  1  以前从一些资料上看到InnoDB的索引是稀疏索引,而MyISAM的索引是密集索引,今天刻意测试了一下,发现竟然不是这样。
 2  找时间研究下,mark一下先。
 3  mysql> show create table uniq_idG
 4  *************************** 1. row ***************************
 5          Table: uniq_id
 6  Create Table: CREATE TABLE `uniq_id` (
 7     `id` int(11) DEFAULT NULL,
 8     KEY `id` (`id`)
 9   ) ENGINE=InnoDB DEFAULT CHARSET=latin1
10   1 row in set (0.00 sec)
11  
12  mysql> show create table same_idG
13  *************************** 1. row ***************************
14         Table: same_id
15  Create Table: CREATE TABLE `same_id` (
16    `id` int(11) DEFAULT NULL,

CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,