Data integrity refers to the correctness and completeness of data in a database. It is preserved through constraints that restrict what values can be inserted or updated. The main types of constraints are required data, validity checking, entity integrity, and referential integrity constraints. Deferred constraint checking allows constraints to be checked at transaction commit rather than for each statement, which is useful when multiple updates are needed to maintain consistency.