一些技巧:https://www.cnblogs.com/wangxusummer/p/5329813.html 1.前缀索引与索引的选择性 概念: 计算方法: 缺点: 2.选择合适的索引列顺序 3.聚簇索引 优点: 缺点: 与MyISAM比较: 主键: