Constraints

A constraint is a rule that Db2 enforces for column values to prevent duplicate values or to set restrictions on data that is added to a table.

Db2 uses the following types of constraints.