What is the purpose of the FOREIGN KEY constraint in a relational database?

  • Concatenates columns
  • Defines a primary key
  • Ensures referential integrity
  • Limits the number of rows
The FOREIGN KEY constraint in a relational database is used to ensure referential integrity between two tables. It establishes a link between the data in two tables, ensuring that relationships between them are maintained.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *