database - Describe transactions and explain the main principles -


could me answer question:

describe transactions , explain main principles.

i think link might helpful http://www.tutorialspoint.com/sqlite/sqlite_transactions.htm

there many reasons them. among other reasons, transactions protect integrity of database data allowing decide @ end of session whether want commit changes or revert state database before started making changes. cases want revert might cases error occurs in program while.

for example, if building program bank handles money transfers, make query update balance in customer's first account minus transfer amount. however, if run error when attempting update second account, nice abandon changes made , return both tables original state.

i hope link helps.


Comments

Popular posts from this blog

Email notification in google apps script -

c++ - Difference between pre and post decrement in recursive function argument -

javascript - IE11 incompatibility with jQuery's 'readonly'? -