问题:在mysql中用a,b,c三个字段建立一个复合索引a_b_c,请问以下哪个查询效率最差?
A、select * from test where a=10 and b>50
B、select * from test where a=10 and b>10 order by c
C、select * from test where a=10 and b=10 order by a
D、select * from test where a=10 and b = 10 order by c
如何查看以上语句命中了联合索引中的哪几个字段?
了解下
mysql
的explain
执行计划。看下如何使用,以及查询出来的字段是什么意思。https://blog.csdn.net/why1573...