Computer Science, asked by navinyamahajan05, 1 month ago

Differentiate between Primary key and Foreign key​

Answers

Answered by Anonymous
1

Explanation:

Primary key is used to identify data uniquely therefore two rows can't have the same primary key. It can't be null. On the other hand, foreign key is used to maintain relationship between two tables. Primary of a table act as forgein key in the other table.

Answered by alina123497
2

Primary key is used to identify data uniquely therefore two rows can't have the same primary key. It can't be null. On the other hand, foreign key is used to maintain relationship between two tables. Primary of a table act as forgein key in the other table.

Similar questions