Answers for "sql server add unique constraint"

SQL
3

sql server add unique constraint

-- Add a Unique constraint and deifine the constraint name
ALTER TABLE TableName
ADD	CONSTRAINT TableName_ColumnName_Unique UNIQUE (ColumnName)
Posted by: Guest on January-22-2021
1

set column as unique in sql server

ALTER TABLE Persons
ADD UNIQUE (ID);
Posted by: Guest on October-13-2020

Code answers related to "sql server add unique constraint"

Code answers related to "SQL"

Browse Popular Code Answers by Language