A data integrity restriction that limits or validates the data in a column to ensures that incoming data is compatible with existing data. Constraints are commonly used to refer to primary and foreign keys. R:BASE provides the following constraints: primary key, foreign key, unique key, and not null. See Constraints.