フリー問題

Oracle Database Program with PL/SQL のフリー問題 10 / 20 問目

問題文

A block inserts several rows and the developer places a COMMIT statement in the middle of the block. Which description of the relationship between a block and a transaction is correct?

選択肢

  1. A block and a transaction are the same unit, so the end of the block commits the changes and a COMMIT statement written in the middle of the block is rejected when the block is compiled.
  2. A block and a transaction are separate units, so one block can contain several transactions and one transaction can span several blocks that run one after the other in the same session.
  3. A block inherits the transaction of the caller and leaves it open, so a COMMIT statement inside a block takes effect after control has returned to the environment that has called the block.
  4. A block starts a transaction for each DML statement that it contains, so every insert is durable as soon as it runs and a rollback afterwards affects the last statement of the block.

解答・解説を確認するには

正解と解説の確認、回答の記録には無料登録が必要です。登録すると演習モードでフリー問題に回答し、正誤と解説をその場で確認できます。