Computer Science, asked by nigileshkannan14, 5 months ago

state relationship and difference between a primary key and foreign key.

Answers

Answered by svaishna123
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 tejaswinimogal11
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