1.字段的数值有唯一性的限制
2.频繁作为where 查询条件字段
3.经常group by 和 Order by的列
4.update、delete 的where 条件列
5.distinct 字段需要创建索引
6.多表JOIN 连接操作时,创建索引注意事项
7.使用列的类型小的创建索引
8.使用字符串前缀创建索引
9. 区分度高(散列性高)的列适合作为索引
10.使用最频繁的列放到联合索引的左侧
11.在多个字段都要创建索引的情况下,联合索引优于单值索引
10-24
813
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
04-07
7289
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
“相关推荐”对你有帮助么?
-
非常没帮助
-
没帮助
-
一般
-
有帮助
-
非常有帮助
提交