77.5k views
5 votes
What is a foreign key​

User Kirt
by
4.2k points

2 Answers

9 votes

Step-by-step explanation:

A foreign key is a set of attributes in a table that refers to the primary key of another table. The foreign key links these two tables.

User Ahmed Meraj
by
5.0k points
1 vote

Answer:A foreign key is a set of attributes in a table that refers to the primary key of another table. The foreign key links these two tables. Another way to put it: In the context of relational databases, a foreign key is a set of attributes subject to a certain kind of inclusion dependency constraints

Explanation: The foreign key links these two tables. Another way to put it: In the context of relational databases, a foreign key is a set of attributes subject to a certain kind of inclusion dependency constraints

User Dylan Ireland
by
5.4k points