Does Oracle roll back the transaction on an error?

前端 未结 3 1352
囚心锁ツ
囚心锁ツ 2020-12-06 07:24

This feels like a dumb question, but I see the following in the Oracle concepts guide on transaction management:

A transaction ends when any of the

3条回答
  •  既然无缘
    2020-12-06 07:31

    I agree with Justin, his insight is correct. Adding additional information: As the application developer, you should explicitly call a rollback command if errors happen. This means, you should also consider grouping statements into transactional blocks as appropriate. Transactional blocks and rollbacks are handled differently by different technologies, it's worth some research to make sure you understand it well.

提交回复
热议问题