A constraint is a restriction or limitation placed on a file to ensure that the data in your database remains consistent as you add, change, and remove records. These topics describe how to use constraints to ensure data consistency.
Primary key and unique constraints can be used as the parent key when adding a referential constraint.