随笔分类 -  Mysql

摘要:组合索引 提到组合索引,大家都知道“最左前缀”原则。例如,创建索引 idx_name_age (name,age) ,通常情况下,where age=50 或者 where age 50 之类的,是不会使用到idx_a_b的。那有没有特殊情况呢? 假设表是: CREATE TABLE ( int(1 阅读全文
posted @ 2018-01-31 11:15 xiaoallen 阅读(1572) 评论(0) 推荐(1)