why can't we have more than one Primary key tags ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

why can't we have more than one Primary key tags ?

20th Aug 2016, 8:09 AM
Antariksh Verma
Antariksh Verma - avatar
2 Answers
0
you have one primary key which consists of one or more fields.
20th Aug 2016, 7:47 PM
Tiger
Tiger - avatar
0
we don't need more primary key tag. because primary key is unique for every row and it is used as foreign key to relation with other table. but primary key can be composed of more than one column.
23rd Aug 2016, 5:51 PM
Raton Kumar
Raton Kumar - avatar