关于SQL Server的差异问题 [英] Difference question on SQL Server

查看:66
本文介绍了关于SQL Server的差异问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的问题是

索引和唯一索引之间的区别是什么?



尽快回答我的问题。 />
谢谢。

解决方案

UNIQUE 索引保证索引键(一个或更多列)不包含重复值,因此表中的每一行都以某种方式唯一。请参阅创建唯一索引 [ ^ ]。



使用一个或多个键列构建一个非唯一的索引,这些键可能在索引的表的多行中相同。

My Question is
What is the difference between index and unique index?

Anwer my question as soon as possible.
Thank You.

解决方案

A UNIQUE index guarantees that the index key (one or more columns) contains no duplicate values and therefore every row in the table is in some way unique. See Create Unique Indexes[^].

An index that is not unique is built using one or more key columns that may be the same in more than one row of the table that is indexed.


这篇关于关于SQL Server的差异问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆