What is the equivalent to SQL Server Transactions in DB2?

前端 未结 3 1023
借酒劲吻你
借酒劲吻你 2021-01-12 10:43

What is the equivalent to the following SQL Server statements in DB2?

  • Begin Transaction
  • Commit Transaction
  • Rollback Transaction
3条回答
  •  无人及你
    2021-01-12 11:28

    If you use an IDE like Intellij Idea (or others) then you don't have the possibility to start explicitely a transaction. In others words you cannot type 'begin transaction' in the console of your IDE.

    But you can disable 'Auto-commit' (and reenable it later) and then type 'commit' or "rollback' into the console.

    In IDEA there is also a button to 'commit' and a button to 'rollback'. Have a look to the screen dump attached.

提交回复
热议问题