SQL Server在位字段上的索引 [英] Sql Server Index on Bit fields
本文介绍了SQL Server在位字段上的索引的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用Sql Server 2000,想知道为什么我们不能在位字段上创建索引吗?
I am using Sql Server 2000 and want to know why we can not create index on bit fields?
推荐答案
仅是产品的限制. SQL Server 2005+确实允许这样做.
Just a limitation of the product. SQL Server 2005+ does allow this.
由于提示点单列
Because of the Tipping Point a single column bit
index is unlikely to be very useful unless the values are heavily skewed (a scenario for which filtered indexes in 2008 can help)
仍然-仍然可以用作复合覆盖索引的一部分.
Still - could be useful as part of a composite covering index though.
这篇关于SQL Server在位字段上的索引的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文