In DB2, what does the FOREIGN KEY constraint enforce?

  • Determines the primary key of a table
  • Enforces referential integrity
  • Ensures uniqueness of values
  • Restricts the values allowed in a column
The FOREIGN KEY constraint in DB2 enforces referential integrity, ensuring that values in a column (or columns) of one table match values in another table's primary key or unique key. This maintains consistency and relationships between related tables. 
Add your answer
Loading...

Leave a comment

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