输入banner图图片脚本导航/分类

MySQL性能分析及explain的使用

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