is select statement considered as a transaction ?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • balucec
    New Member
    • Apr 2010
    • 4

    is select statement considered as a transaction ?

    Is the select statement in SQL considered as a transaction.? What is a transaction? (pls explain i know the conventional definitions)
  • Amarnath Reddy N
    New Member
    • May 2010
    • 11

    #2
    Yes select statement in SQL considered as a transaction. All statements in DB2 initiates a transaction,

    Transactions in DB2 are implied rather than explicitly defined.
    A transaction is essentially all the work from one persistence
    point to another. A persistence point is where data is actually
    written to the database or not written, i.e COMMIT or ROLLBACK.

    In other words a transaction is all the work from one COMMIT /
    ROLLBACK to the next COMMIT / ROLLBACK.

    DB2 prefer to use Unit of Work (UOW) instead of transaction

    Comment

    Working...