如果索引了多列,要遵守最左前缀法则,指的是查询从索引的最左前列开始并且不跳过索引中的列举例: 索引 :idx_a_b_c不能中间断了,变成 select d from table where a=1 and c=1 这样a之后的索引将失效中间的b 断了, 应该是select d from table where a=1 and b=1 and c=1 带头大哥不能死, 中间兄弟不能断