MySQL 索引优化原则
摘要:一、索引优化原则 1、最左前缀匹配原则,联合索引,mysql会从做向右匹配直到遇到范围查询(>、<、between、like)就停止匹配,比如a = 1 and b = 2 and c > 3 and d = 4 如果建立(a,b,c,d)顺序的索引,d是用不到索引的,如果建立(a,b,d,c)的索
阅读全文
posted @ 2017-09-19 18:41
posted @ 2017-09-19 18:41
posted @ 2017-08-01 10:40
posted @ 2016-09-21 11:11