In a nutshell
Integrity constraints are rules the database refuses to break, checked automatically on every insert, update, and delete. Entity integrity says every row must be identifiable: its primary key must be unique and never empty. Referential integrity says links between tables must be real: a foreign key has to point at a row that actually exists. A domain constraint adds that each column only accepts sensible values. Together they stop the data from quietly becoming corrupt.