1.

How can a user test Transactions in an SQL database?

Answer»

This requires the ACID properties, and to achieve that we use the following statements-

Using the ROLLBACK command CHANGES are rolled back to the previous commit. Once transactions are EXECUTED, the user can use SELECT queries to VALIDATE the data.

Example

BEGIN TRANSACTION TRANSACTION#

END TRANSACTION TRANSACTION#

ROLLBACK TRANSACTION# 



Discussion

No Comment Found