Computer Science, asked by himanshi5221, 10 months ago

differenate between primary key and forgien key?​

Answers

Answered by abhishekkrathod7
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 deepandita2005
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:
Similar questions