题目
COMP90050_2025_SM2 Quiz 3
单项选择题
Why do we use nested transactions?
选项
A.Because many transactions have subcomponents that may fail and alternate decisions can be made about them rather than throwing away all the work of the whole transaction.
B.Because many transactions use nested loop join types and thus writing transactions this way makes optimisation easier.
C.Because many transactions can take locks easily
D.Because many transactions are written by different people and each programmer writes one part of it.
查看解析
标准答案
Please login to view
思路分析
Question: Why do we use nested transactions?
Option 1: 'Because many transactions have subcomponents that may fail and alternate decisions can be made about them rather than throwing away all the work of the whole transaction.' This is correct. Nested transactions allow partial commits or rollbacks within subcomponents, so if a subcomponent encounters an issue, you can roll back only that part without disc......Login to view full explanation登录即可查看完整答案
我们收录了全球超50000道考试原题与详细解析,现在登录,立即获得答案。
类似问题
Question at position 45 If the transaction is completely isolated, only deleting rows is allowed.TrueFalse
Question at position 11 A business transaction requires:several actions against the database.a trigger.a stored procedure.human intervention.
Question at position 8 A business transaction requires:human intervention.a stored procedure.a trigger.several actions against the database.
Question at position 28 A transaction is considered isolated when:it can only be run on one server.any changes in the database are not revealed to the user until the transaction is complete.users can see changes to tables before the transaction is complete.it runs in a vacuum.
更多留学生实用工具
希望你的学习变得更简单
加入我们,立即解锁 海量真题 与 独家解析,让复习快人一步!