differentiate between a primary key and foreign key
Answers
Answered by
2
Answer:
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
5
Explanation:
Primary key
1. Primary key is used to identify data uniquely therefore two rows can't have the same primary key.
2. It can't be null.
Foreign key
1. Foreign key is used to maintain relationship between two tables.
2. Primary of a table act as forgein key in the other table.
Similar questions
English,
3 months ago
Chemistry,
3 months ago
Hindi,
7 months ago
Math,
11 months ago
World Languages,
11 months ago