Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

composite primary key sql

CREATE TABLE student
(rollNumber INT, 
name VARCHAR(30), 
class VARCHAR(30), 
section VARCHAR(1), 
mobile VARCHAR(10),
PRIMARY KEY (rollNumber, mobile));
Source by www.geeksforgeeks.org #
 
PREVIOUS NEXT
Tagged: #composite #primary #key #sql
ADD COMMENT
Topic
Name
2+5 =