what is primary key and foreign key?
Share
what is primary key and foreign key?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Answer:
A foreign key is a column or a set of columns in one table that references the primary key columns in another table. The primary key is defined as a column (or set of columns) where each value is unique and identifies a single row of the table
Explanation:
please mark as brainlist
Primary key:
In the relational model of databases, a primary key is a specific choice of a minimal set of attributes that uniquely specify a tuple in a relation. Informally, a primary key is "which attributes identify a record", and in simple cases are simply a single attribute: a unique id.
Foreign key :
Simply put, a foreign key is a set of attributes in a table that refers to the primary key of another table.
I hope it helps you.
Be happy.
Explanation:
Stay Safe Stay Healthy...