Lazy loaded image
学习笔记
MySQL InnoDB
Words 116Read Time 1 min
2021-7-2
2025-3-8
type
status
date
slug
summary
tags
category
icon
password
  • 表数据文件本身就是按B+Tree组织的一个索引结构文件
  • 聚集索引-叶节点包含了完整的数据记录
  • 为什么建议InnoDB表必须建主键,并且推荐使用整型的自增主键
  • 为什么非逐渐索引结构叶子节点存储的是主键值?(一致性原则和节省存储空间)
notion image
notion image
 
联合索引的结构:
notion image
 
 
MyISAM结构如下:
notion image
上一篇
MySQL Explain
下一篇
MySQL Explain实践