Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

how to define a composite primary key in sql

CREATE TABLE person(id INT, 
					name TEXT,
					PRIMARY KEY (id, name)
				   );
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #define #composite #primary #key #sql
ADD COMMENT
Topic
Name
2+4 =