Do you know what's the ACID?
http://en.wikipedia.org/wiki/ACID
atomicity, consistency, isolation, durability is a set of property which garentee the database transaction processed reliable.
Atomicity requires that database modifications must follow an "all or nothing" rule.
The consistency property ensures that any transaction the database performs will take it from one consistent state to another.
Isolation refers to the requirement that other operations cannot access data that has been modified during a transaction that has not yet completed.
Durability is the ability of the DBMS to recover the committed transaction updates against any kind of system failure (hardware or software).