Which type of constraint ensures that a foreign key in one table references a primary key in another table?

  • Foreign key constraint
  • Primary key constraint
  • Referential integrity constraint
  • Unique constraint
Referential integrity constraint ensures that a foreign key in one table references a primary key in another table. It maintains the consistency and integrity of the data by enforcing relationships between tables. This constraint prevents actions that would violate these relationships, such as deleting a record with a referenced foreign key.
Add your answer
Loading...

Leave a comment

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