What is the purpose of the CHECK constraint in DB2?

  • Defines the primary key of a table
  • Enforces a condition on the values allowed in a column
  • Ensures uniqueness of values
  • Specifies the foreign key relationships
The CHECK constraint in DB2 allows you to specify a condition that must be met for values entered into a column. It ensures data integrity by enforcing rules on the values allowed in the column, preventing invalid data from being inserted. 
Add your answer
Loading...

Leave a comment

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