Answers for "how to define composite primary key in sql"

SQL
0

how to define a non primary composite key in sql

ALTER TABLE dbo.YourTable
ADD CONSTRAINT UC_YourTable_Col1_Col2
UNIQUE(Col1, Col2)
Posted by: Guest on February-22-2021

Code answers related to "how to define composite primary key in sql"

Code answers related to "SQL"

Browse Popular Code Answers by Language