WHAT IS TRANSACTION?
A Transaction is a set of changes that must all be made together.It is a collection of Operations that form a single logical unit of work.It must be either completed or entirely apported to ensure the consistency and integrity of database.For Example - A transfer of money from one bank account to another requires two changes to the database both must succeed or fail together. Consider the example - You are working on a system for a bank.
A Transaction is a set of changes that must all be made together.It is a collection of Operations that form a single logical unit of work.It must be either completed or entirely apported to ensure the consistency and integrity of database.For Example - A transfer of money from one bank account to another requires two changes to the database both must succeed or fail together. Consider the example - You are working on a system for a bank.