Answers for "how to make a column unique in sql"

SQL
0

how to make a column unique in SQL

ALTER TABLE Persons
ADD CONSTRAINT UC_Person UNIQUE (ID,LastName);
Posted by: Guest on November-06-2021
1

unique constraint mssql

USE AdventureWorks2012;  
GO  
CREATE TABLE Production.TransactionHistoryArchive4  
 (  
   TransactionID int NOT NULL,   
   CONSTRAINT AK_TransactionID UNIQUE(TransactionID)   
);   
GO
Posted by: Guest on August-03-2020

Code answers related to "how to make a column unique in sql"

Code answers related to "SQL"

Browse Popular Code Answers by Language