All articles| All Pictures| All Softwares| All Video| Go home page| Write articles| Upload pictures

Reading number is top 10 articles
加速动态网站,MySQL索引分析和优化_php资料_编程技术
Apache指南- .htaccess文件使用手册_[PHP教程]
SQL,Server,2005数据库升级要点和技巧_[SQL,Server教程]
delphiRTF 编辑组件(TRichEdit)使用实例
delphi OutLook界面实例
Sql联合查询_mssql学习_编程技术
PHP技巧:PHP的mb_substr和mb_strcut的区别_[PHP教程]
asp.net,ajax,1.0,hello,world程序_.net资料_编程技术
delphi获取Windows目录
Asp.Net,动态生成验证码_[Asp.Net教程]
Reading number is top 10 pictures
乳娘帕梅拉安德森3
姑娘手慢了,已经走光了
10 powerless things in life
Shandong jinan is about to dismantle a one hundred-year history of the building
美女当网吧管理员的悲剧
Hunan province aizhai super-large suspension bridge open to traffic and 4 world first2
A man's favorite things2
牛奶和人奶哪个好?
恶搞漫画1
Wild animals melee moment of life and death2
Download software ranking
Tram sex maniac 2 (H) rar bag1
Kung fu panda - the secret of the teacher
Unix video tutorial2
Unix video tutorial12
金山office2007
matrix2
Unix video tutorial15
Unix video tutorial4
实战黑客不求人
Ashlynn Video5
归海一刀 published in(发表于) 2014/2/3 6:40:34 Edit(编辑)
SQL语句在什么情况下使用全表扫描-_[SQL Server教程]

SQL语句在什么情况下使用全表扫描-_[SQL Server教程]

SQL语句在什么情况下使用全表扫描?_[SQL Server教程]

问:SQL语句在什么情况下使用全表扫描?


答:


1:对返回的行无任何限定条件,即没有where 字句


2:对数据表与任何索引主列相对应的行限定条件,例如:在City-State-Zip列创建了三列复合索引,那么仅对State有列限定条件不能使用这个索引,因为State不是索引的主列。


3:对索引的主列有限定条件,但是条件在表达式里使用,例如:在City上有索引,但是若使用表达式,如:


where upper(city)='TokYo' 或
City || 'X' like 'TOKYO%',


那么不会使用索引。


4:对索引的主列有限定条件,但是条件或者是Null或者是不相等。例如:在City上有索引,但是若使用表达式,如:


where City is null,where City is
not null,Where city!='TOKYO'.


5: 对索引的主列有限定条件,但是条件使用like操作以及值以‘%’开始或者值是一个赋值变量。例如:


where City like '%YOK%'
where City like: City_bind_Variable xl_rao







添加到del.icio.us 添加到新浪ViVi 添加到百度搜藏 添加到POCO网摘 添加到天天网摘365Key 添加到和讯网摘 添加到天极网摘 添加到黑米书签 添加到QQ书签 添加到雅虎收藏 添加到奇客发现 diigo it 添加到饭否 添加到飞豆订阅 添加到抓虾收藏 添加到鲜果订阅 digg it 貼到funP 添加到有道阅读 Live Favorites 添加到Newsvine 打印本页 用Email发送本页 在Facebook上分享


Disclaimer Privacy Policy About us Site Map

If you have any requirements, please contact webmaster。(如果有什么要求,请联系站长)
Copyright ©2011-
uuhomepage.com, Inc. All rights reserved.