Computer Science, asked by dhwanibhatiya691, 8 months ago

differentiate between Primary Key and Foreign Key.​

Answers

Answered by Anonymous
27

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 samiaiman343
8

Answer:

Primary key uniquely identify a record in the table. Foreign key is a field in the table that is primary key in another table. By default, Primary key is clustered index and data in the database table is physically organized in the sequence of clustered index. ...

Similar questions