Courses / SQL
18. FOREIGN KEY
A field in one table that uniquely identifies a row of another table, establishing a relationship.
1 min read Chapter 18 of 29
SQL
FOREIGN KEY
A foreign key is a field in one table that links to the primary key of another table.
"I need to connect data across different tables without losing integrity."
A foreign key establishes a relationship between two tables by referencing the primary key of another table, ensuring data integrity and consistency.
"I need to connect data across different tables without losing integrity."
A foreign key establishes a relationship between two tables by referencing the primary key of another table, ensuring data integrity and consistency.