简体   繁体   中英

non-unique index on unique constraint column

I have a table which a unique constraint on a column. This column also has a non-unique clustered index. This column is not the primary key.

are there any issues around this? I can't find any information about this combination.

cheers,

The non-clustered index is redundant assuming that it really is just on that column and nothing else. A unique constraint is implemented using a unique NCI.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM