state relationship and difference between a primary key and foreign key.
Answers
Answered by
9
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
2
Answer:
A primary key is the unique identifier for each record in the table of a database, whereas a foreign key is a field in the table and is also the primary key of another linked table in RDBMS.
Similar questions