Blog
首页
前端
前端
Vue
TypeScript
React
Angular
Node.js
小程序
Flutter
数据开发
数据开发
数据产品
大数据
Hadoop
Hive
Spark
数据库
数据库
MySQL
Redis
后端
后端
Java
Python
Golang
GitHub
MySQL 索引
主键索引
普通索引
联合索引
主键索引
clustered index
普通索引
non-clustered index
secondary index, 查找普通索引数据带id,在回表查询clustered index数据
联合索引
multi column index
联合索引的列数越多,查询效率越高
最左前缀匹配
只有索引最后的col2, 会存在索引失效的问题