Referring to this, http://docs.oracle.com/cd/B19306_01/server.102/b14220/transact.htm
How the transactions are managed into the MySQL database.
My concern is, I have an application that is writing a few queries similar to the given link for completing a full transaction. I want to ensure that it always write correct & full transaction for final save & doesn’t write incomplete transaction into SQL in case of power failure or some other circumstances to ensure the correctness of the transaction.
Just want to know how it can be implemented into MySQL db.
First, make sure you are using a transactional storage engine, such an InnoDB.
Next, make sure you understand the statements that cause implicit commit.
Read documentation on transactions