diff --git a/docs/notes/MySQL.md b/docs/notes/MySQL.md index 17976a72..c9914a0b 100644 --- a/docs/notes/MySQL.md +++ b/docs/notes/MySQL.md @@ -43,7 +43,7 @@ B+ Tree 是基于 B Tree 和叶子节点顺序访问指针进行实现,它具 在 B+ Tree 中,一个节点中的 key 从左到右非递减排列,如果某个指针的左右相邻 key 分别是 keyi 和 keyi+1,且不为 null,则该指针指向节点的所有 key 大于等于 keyi 且小于等于 keyi+1。 -

+

### 2. 操作 @@ -85,11 +85,11 @@ B+ Tree 是基于 B Tree 和叶子节点顺序访问指针进行实现,它具 InnoDB 的 B+Tree 索引分为主索引和辅助索引。主索引的叶子节点 data 域记录着完整的数据记录,这种索引方式被称为聚簇索引。因为无法把数据行存放在两个不同的地方,所以一个表只能有一个聚簇索引。 -

+

辅助索引的叶子节点的 data 域记录着主键的值,因此在使用辅助索引进行查找时,需要先查找到主键值,然后再到主索引中进行查找。 -

+

### 2. 哈希索引 diff --git a/docs/notes/pics/10a6d3ee-04b2-46b4-b171-d596e5ab0f84.jpg b/docs/notes/pics/10a6d3ee-04b2-46b4-b171-d596e5ab0f84.jpg new file mode 100644 index 00000000..043964ae Binary files /dev/null and b/docs/notes/pics/10a6d3ee-04b2-46b4-b171-d596e5ab0f84.jpg differ diff --git a/docs/notes/pics/40f29839-fd56-4ed0-9353-39dfe6f0bba5.jpg b/docs/notes/pics/40f29839-fd56-4ed0-9353-39dfe6f0bba5.jpg new file mode 100644 index 00000000..355cdf57 Binary files /dev/null and b/docs/notes/pics/40f29839-fd56-4ed0-9353-39dfe6f0bba5.jpg differ diff --git a/docs/notes/pics/4f151e62-6160-47f1-9eff-47b1f4dea4e9.jpg b/docs/notes/pics/4f151e62-6160-47f1-9eff-47b1f4dea4e9.jpg new file mode 100644 index 00000000..febf7a17 Binary files /dev/null and b/docs/notes/pics/4f151e62-6160-47f1-9eff-47b1f4dea4e9.jpg differ diff --git a/docs/pics/10a6d3ee-04b2-46b4-b171-d596e5ab0f84.jpg b/docs/pics/10a6d3ee-04b2-46b4-b171-d596e5ab0f84.jpg new file mode 100644 index 00000000..043964ae Binary files /dev/null and b/docs/pics/10a6d3ee-04b2-46b4-b171-d596e5ab0f84.jpg differ diff --git a/docs/pics/40f29839-fd56-4ed0-9353-39dfe6f0bba5.jpg b/docs/pics/40f29839-fd56-4ed0-9353-39dfe6f0bba5.jpg new file mode 100644 index 00000000..355cdf57 Binary files /dev/null and b/docs/pics/40f29839-fd56-4ed0-9353-39dfe6f0bba5.jpg differ diff --git a/docs/pics/4f151e62-6160-47f1-9eff-47b1f4dea4e9.jpg b/docs/pics/4f151e62-6160-47f1-9eff-47b1f4dea4e9.jpg new file mode 100644 index 00000000..febf7a17 Binary files /dev/null and b/docs/pics/4f151e62-6160-47f1-9eff-47b1f4dea4e9.jpg differ