Sql Server Index on Bit fields

2019-08-01 06:17发布

I am using Sql Server 2000 and want to know why we can not create index on bit fields?

2条回答
做个烂人
2楼-- · 2019-08-01 06:44

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.

查看更多
\"骚年 ilove
3楼-- · 2019-08-01 06:46

I would guess this is by design. A bit field can only have 1 of 2 values, so it would not be selective enough for an index to be useful.

查看更多
登录 后发表回答