复合索引使用实例解析
2016-08-08 09:59
141 查看
假设某个表有一个联合索引(c1,c2,c3,c4)一下——只能使用该联合索引的c1,c2,c3部分
A where c1=x and c2=x and c4>x and c3=x
B where c1=x and c2=x and c4=x order by c3
C where c1=x and c4= x group by c3,c2
D where c1=? and c5=? order by c2,c3
E where c1=? and c2=? and c5=? order by c2,c3
有谁知道下面A-E能否可以使用索引!!为什么?
答案:自学it网-索引问题
A where c1=x and c2=x and c4>x and c3=x
B where c1=x and c2=x and c4=x order by c3
C where c1=x and c4= x group by c3,c2
D where c1=? and c5=? order by c2,c3
E where c1=? and c2=? and c5=? order by c2,c3
有谁知道下面A-E能否可以使用索引!!为什么?
答案:自学it网-索引问题
相关文章推荐
- 如何判断使用复合索引还是使用多个单列索引
- 使用索引的误区之一:没有使用复合索引的前导列导致查询不使用索引
- 使用autotools建立Makefile简单实例解析
- 实例037 使用dom4j解析XML文件
- solr 应用全面解析,简单的应用,多实例,分布式索引分发,如何在客户端配置注册多实例
- 使用索引的误区之一:没有使用复合索引的前导列导致查询不使用索引
- SQL SERVER索引使用实例
- RSS Reader实例开发之解析XML和使用WebView
- sp_xml_preparedocument sp_xml_removedocument 使用 实例 解析
- android端使用json解析调用Google Directions API返回结果的实例
- 使用java解析xml的实例程序
- 索引原理及项目中如何使用索引实例分析
- 使用索引的误区之一:没有使用复合索引的前导列导致查询不使用索引——oracle
- 使用gSOAP开发实例(5) libxml2解析SOAP响应消息
- MySQL索引使用方法及实例学
- 实例解析 Automake 的使用
- 使用SAX解析和DOM解析的实例
- 使用autotools建立Makefile简单实例解析
- ORACLE复合索引使用 注意事项
- Java使用SOAP获取webservice实例解析