What is the difference between integrity and consistency?
I think the difference is that the two terms refer to different things:


Consistency refers to Transactions (it's the C in ACID).
Integrity refers to Databases.


A transaction is said to be consistent if it keeps the integrity of the database (i.e. if it transforms the database from a valid state to another valid state).