Answers for "sql composite key"

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

sql composite key

CREATE TABLE TABLE_NAME  
(COLUMN_1, DATA_TYPE_1,  
COLUMN_2, DATA_TYPE_2,  
...
PRIMARY KEY (COLUMN_1, COLUMN_2, ...));
Posted by: Guest on April-17-2021

Code answers related to "sql composite key"

Code answers related to "SQL"

Browse Popular Code Answers by Language