A transaction of DB can be auto-commit or manual-commit or manual-rollback.A transaction includes many data proccesses including update or delete or add,and within the processes from a same transaction either all of them succeed or all of them fail.