Skip to main content
Share Your Experience: Take the 2024 Developer Survey

Denotes questions related to relational database foreign key

In the context of relational databases, a foreign key is a field (or collection of fields) in one table that uniquely identifies a row of another table or the same table. In simpler words, the foreign key is defined in a second table, but it refers to the primary key or a unique key in the first table.