Computer Science, asked by maitri24, 1 year ago

what is the use of primary key

Answers

Answered by prabhat0308
8
A primary key is used to ensure data in the specific column is unique. You can only set constraints with primary keys, by setting a foreign key to another column which creates a relationship with the column that has the primary key set. A prime use of a primary key is in the case of a users table.

maitri24: thanks for the answer
Answered by Annrose123
18

A primary key is used to ensure data in the specific column is unique. You can only set constraints with primary keys, by setting a foreign key to another column which creates a relationship with the column that has the primary key set. A prime use of a primary key is in the case of a users table.  

Similar questions