Answers for "create table with unique key"

SQL
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
0

unique key

CREATE TABLE students  
(  
S_Id int NOT NULL,  
LastName varchar (255) NOT NULL,  
FirstName varchar (255),  
City varchar (255),  
UNIQUE (S_Id)  
)
Posted by: Guest on October-07-2020
0

unique key

Unique Key:
Only unique value and also can contain NULL
Posted by: Guest on January-27-2021

Code answers related to "create table with unique key"

Code answers related to "SQL"

Browse Popular Code Answers by Language