-
Book Overview & Buying
-
Table Of Contents
PHP Oracle Web Development: Data processing, Security, Caching, XML, Web Services, and Ajax
By :
To guarantee that the data you are working on is always correct, you have to use transactions. In a nutshell, transactions provide a mechanism that makes it possible for you to safely modify database data, bringing the database from one consistent state to another.
A classic example of transactions in action involves banking operations such as transferring money from one bank account to another. Say you need to transfer money from a savings account to a checking account. To accomplish this operation, you have to at least perform the following two steps: decrement the savings account and increment the checking account. It is obvious that in this situation it is important to treat both the operations as a single unit of work, to maintain the balance in the accounts. So, neither of the operations can be performed separately—either both of them should be complete, or neither of them—you must ensure that either both the operations are completed successfully or both are...
Change the font size
Change margin width
Change background colour