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

SQL
6

how to define a composite primary key in sql

CREATE TABLE person(id INT, 
					name TEXT,
					PRIMARY KEY (id, name)
				   );
Posted by: Guest on November-25-2020
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 a non primary composite key in sql"

Code answers related to "SQL"

Browse Popular Code Answers by Language