简体   繁体   English

MySQL二级索引中,叶子节点上的主键是否有序?

[英]In the MySQL secondary index, are the primary keys on the leaf nodes ordered?

mysql index索引

In the MySQL secondary index, are the primary keys on the leaf nodes ordered? MySQL二级索引中,叶子节点上的主键是否有序?

Physical structure in MySQL secondary index MySQL二级索引中的物理结构

Modern versions of innodb implicitly add the primary key to all other keys.现代版本的 innodb 隐式地将主键添加到所有其他键。 Eg index (foo) is actually index (foo,pk) .例如index (foo)实际上是index (foo,pk) So different pk values will be in different leaf nodes (if I understand what you mean by that term).因此,不同的 pk 值将位于不同的叶节点中(如果我理解该术语的意思)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM