当前位置:Gxlcms > 数据库问题 > MySQL性能分析及explain的使用

MySQL性能分析及explain的使用

时间:2021-07-01 10:21:17 帮助过:21人阅读

key1=.... where key1=1 and key2=2 where key1=3 and key3=3 and key2=2

根据最左原则,这些都是可以使用索引的,如from test where key1=1 order by key3,用explain分析的话,只用到了normal_key索引,但只对where子句起作用,而后面的order by需要排序。

http://database.51cto.com/art/201108/284783.htm

 

MySQL性能分析及explain的使用

标签:内容   exp   例子   表示   .com   log   font   extra   weight   

人气教程排行