添加没有聚簇索引的NonClustered索引是否合适? [英] Is it good to add a NonClustered index without Clustered Index
本文介绍了添加没有聚簇索引的NonClustered索引是否合适?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有一张表消费者带字段
ImportDate DateTime
AccountNo Varchar(40)
AccountType Int
名称Varchar(40)
IDType Int
国际国际金额
此表中没有主键,是否适合在ImportDate上添加NonClustered索引。
Hi,
There is a table Consumer with fields
ImportDate DateTime
AccountNo Varchar(40)
AccountType Int
Name Varchar(40)
IDType Int
Country Int
There is no Primary Key in this table, and is it good for adding a NonClustered index on the ImportDate.
推荐答案
hi clintoug,
不是一个是/否的问题,这是你必须要了解的关于这两种类型的索引的一些事情。
所以这里是对这些索引的一个很好的讨论
http://stackoverflow.com/questions/4034076/reasons-not-to-have-a-clustered-index-in-s ql-server-2005 [ ^ ]
hi clintoug,
Is not a question of yes/no, This is some thing you have to learn about these two type of indexes fist
so here is one good discussion over these indexes
http://stackoverflow.com/questions/4034076/reasons-not-to-have-a-clustered-index-in-sql-server-2005[^]
这篇关于添加没有聚簇索引的NonClustered索引是否合适?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文