📜  ms sql server 中的唯一键 - SQL 代码示例

📅  最后修改于: 2022-03-11 15:05:26.291000             🧑  作者: Mango

代码示例1
/* To create the Unique Key.
Unique Key constraint to enforce uniqueneess of a column i.e. the column 
shouldn't allow duplicate values.*/
ALTER TABLE Table_Name
ADD CONSTRAINT Constraint_Name UNIQUE (Column_Name)