differenate between primary key and forgien key?
Answers
Answered by
1
Answer:
A primary key is used to ensure data in the specific column is unique. A foreign key is a column or group of columns in a relational database table that provides a link between data in two tables. It uniquely identifies a record in the relational database table. ... Only one primary key is allowed in a table.
Answered by
2
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.
Explanation:
i hope it's helpful
Attachments:
![](https://hi-static.z-dn.net/files/da5/de0acd16054f855ee3f155e9a933e26e.jpg)
Similar questions