12 · Databases & SQL
Foreign Key
A link to another table
A column that points to another table's primary key, wiring the two together.
Concrete example
An order's “user_id” is a foreign key linking it to the user who made it.
A link to another table
A column that points to another table's primary key, wiring the two together.
An order's “user_id” is a foreign key linking it to the user who made it.