SQL Server 2005索引过滤功能
有人告诉我 SQL Server 2005 中有一个新功能,称为索引过滤器。
我想要做的是将索引添加到列并让索引忽略空值。
我找不到有关此功能的详细信息(也许我的来源是错误的)。任何人都可以提供有关此功能的更多信息吗?
I was told that there is new a feature in SQL Server 2005 called index filters.
What I want to do is add an Index to a column and have the index ignore null values.
I can't find good information on this feature (maybe my source is wrong). Can anyone provide additional information on this feature?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
不过,这仅适用于
SQL Server 2008
。来自文档:
This will work only in
SQL Server 2008
, though.From the docs:
我认为您正在谈论过滤索引,它是在 SQL Server 2008 中引入的,而不是 2005 中。
有关信息,请查看这篇文章:http://www.sql-server-performance.com/articles/dba/Filtered_Indexes_in_SQL_Server_2008_p1.aspx
或者只是在 google 上搜索“sql server 过滤索引” ”。
I think you are speaking about filtered indexes, which were introduced in SQL Server 2008, not 2005.
For information, have a look at this article: http://www.sql-server-performance.com/articles/dba/Filtered_Indexes_in_SQL_Server_2008_p1.aspx
Or just do a google search for "sql server filtered indexes".