select * from iVR_haoduan where a<='13722222222' and b>='13711111111'

wd_6532 2005-11-30 06:08:32
不同的机器上,iVR_haoduan的数据和索引都是一样的.

在执行
select * from iVR_haoduan where a<='13722222222' and b>='13711111111'
的时候

为什么1台机器上能用索引(扫描非聚集索引中特定范围的行 用了 idx_a_b),
另外一台机器却不能利用索引(表扫描87% ,)
...全文
217 10 打赏 收藏 转发到动态 举报
写回复
用AI写文章
10 条回复
切换为时间正序
请发表友善的回复…
发表回复
wd_6532 2005-12-22
  • 打赏
  • 举报
回复
看来没有高手了,我才是高手

原因应该是 sqlserver sp3 对varchar 的> and < 是不能利用索引的,对int的可以利用.

而sp4的 > and <是可以利用索引的
大家都打sp4吧.
wd_6532 2005-12-18
  • 打赏
  • 举报
回复
up
wd_6532 2005-12-17
  • 打赏
  • 举报
回复
有没有高手??
bugchen888 2005-12-16
  • 打赏
  • 举报
回复
1.重建某个表的所有索引
下例重建 pubs 数据库中 authors 表上所有索引。
DBCC DBREINDEX ('pubs.dbo.authors')

2.更新单个表的所有统计
本示例更新表 authors 上的所有索引分发统计。
UPDATE STATISTICS authors
ilonliu 2005-12-16
  • 打赏
  • 举报
回复
up
wd_6532 2005-12-02
  • 打赏
  • 举报
回复
up
wd_6532 2005-12-01
  • 打赏
  • 举报
回复
up



====CSDN 小助手 V2.0 2005年10月16日发布====
CSDN小助手是一款脱离浏览器也可以访问Csdn论坛的软件
界面:http://blog.csdn.net/Qqwwee_Com/archive/2005/10/16/504620.aspx
下载:http://szlawbook.com/csdnv2/csdnv2.rar

为神六喝彩,向所有科技工作者致敬!
拒绝日货。
tangchao515 2005-12-01
  • 打赏
  • 举报
回复
是不是索引坏了啊,重建看看
lsqkeke 2005-12-01
  • 打赏
  • 举报
回复
关注
wd_6532 2005-12-01
  • 打赏
  • 举报
回复
up



====CSDN 小助手 V2.0 2005年10月16日发布====
CSDN小助手是一款脱离浏览器也可以访问Csdn论坛的软件
界面:http://blog.csdn.net/Qqwwee_Com/archive/2005/10/16/504620.aspx
下载:http://szlawbook.com/csdnv2/csdnv2.rar

为神六喝彩,向所有科技工作者致敬!
拒绝日货。
Master the art of advanced VoIP and WebRTC communication with the most dynamic application server, FreeSWITCH About This Book Forget the hassle - make FreeSWITCH work for you Discover how FreeSWITCH integrates with a range of tools and APIs From high availability to IVR development use this book to become more confident with this useful communication software Who This Book Is For SysAdmins, VoIP engineers – whoever you are, whatever you’re trying to do, this book will help you get more from FreeSWITCH. What You Will Learn Get to grips with the core concepts of FreeSWITCH Learn FreeSWITCH high availability Work with SIP profiles, gateways, ITSPs, and Codecs optimization Implement effective security on your projects Master audio manipulation and recording Discover how FreeSWITCH works alongside WebRTC Build your own complex IVR and PBX applications Connect directly to PSTN/TDM Create your own FreeSWITCH module Trace SIP packets with the help of best open source tools Implement Homer Sipcapture to troubleshoot and debug all your platform traffic In Detail FreeSWITCH is one of the best tools around if you’re looking for a modern method of managing communication protocols through a range of different media. From real-time browser communication with the WebRTC API to implementing VoIP (voice over internet protocol), with FreeSWITCH you’re in full control of your projects. This book shows you how to unlock its full potential – more than just a tutorial, it’s packed with plenty of tips and tricks to make it work for you. Written by members of the team who actually helped build FreeSWITCH, it will guide you through some of the newest features of version 1.6 including video transcoding and conferencing. Find out how FreeSWITCH interacts with other tools and APIs, learn how to tackle common (and not so common) challenges ranging from high availability to IVR development and programming advanced PBXs. Great communication functionality begins with FreeSWITCH – find out how and get your project up and running today. Style and approach Find out how it works, then put your knowledge into practice - that's how this advanced FreeSWITCH guide has been designed to help you learn. You'll soon master FreeSWITCH and be confident using it in your projects. Table of Contents Chapter 1: Typical Voice Uses for FreeSWITCH Chapter 2: Deploying FreeSWITCH Chapter 3: ITSP and Voice Codecs Optimization Chapter 4: VoIP Security Chapter 5: Audio File and Streaming Formats, Music on Hold, Recording Calls Chapter 6: PSTN and TDM Chapter 7: WebRTC and Mod_Verto Chapter 8: Audio and Video Conferencing Chapter 9: Faxing and T38 Chapter 10: Advanced IVR with Lua Chapter 11: Write Your FreeSWITCH Module in C Chapter 12: Tracing and Debugging VoIP Chapter 13: Homer, Monitoring and Troubleshooting your Communication Platform

34,590

社区成员

发帖
与我相关
我的任务
社区描述
MS-SQL Server相关内容讨论专区
社区管理员
  • 基础类社区
  • 二月十六
  • 卖水果的net
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧