InnoDB和MyISAM都是密集索引? -电脑资料

电脑资料 时间:2019-01-01 我要投稿
【meiwen.anslib.com - 电脑资料】

    1以前从一些资料上看到InnoDB的索引是稀疏索引,而MyISAM的索引是密集索引,今天刻意测试了一下,发现竟然不是这样,

InnoDB和MyISAM都是密集索引?

    2找时间研究下,mark一下先。

    3mysql> showcreatetableuniq_idG

    4***************************1.row***************************

    5Table: uniq_id

    6CreateTable:CREATETABLE`uniq_id` (

    7`id` int(11)DEFAULTNULL,

    8KEY `id` (`id`)

    9) ENGINE=InnoDBDEFAULTCHARSET=latin1

    101rowinset(0.00sec)

    11

    12mysql> showcreatetablesame_idG

    13***************************1.row***************************

    14Table: same_id

    15CreateTable:CREATETABLE`same_id` (

    16`id` int(11)DEFAULTNULL,

   

最新文章