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

MySQL索引优化、性能分析及explain的使用

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


1、like只有在数据列为字符串,且like不是以%开头时索引才会起效
2、大于小于比较只有在数据列为整型时,索引才会起效
3、要想使用or,又想让索引生效,只能将or条件中的每个列都分别加上索引

参考文献:
explain的使用:
http://database.51cto.com/art/201108/284783.htm 
http://www.jb51.net/article/50649.htm 
索引与优化:
http://www.cnblogs.com/hustcat/archive/2009/10/28/1591648.html 

MySQL索引优化、性能分析及explain的使用

标签:htm   cto   http   like   get   sql   分析   优化   生效   

人气教程排行