Oracle
1Z0-147 · Question #22
You have an AFTER UPDATE row-level trigger on the table EMP. This trigger queries the EMP table and inserts the updating user's information into the AUDIT_TABLE . What happens when the user updates…
The correct answer is B. A runtime error occurs. The effect of trigger body and the triggering statement are rolled back. See the full explanation below for the reasoning.
Question
You have an AFTER UPDATE row-level trigger on the table EMP. This trigger queries the EMP table and inserts the updating user's information into the AUDIT_TABLE . What happens when the user updates rows on the EMP table?
Options
- AA compile time error occurs.
- BA runtime error occurs. The effect of trigger body and the triggering statement are rolled back.
- CA runtime error occurs. The effect of trigger body is rolled back, but the update on the EMP table takes place.
- DThe trigger fires successfully. The update on the EMP table occurs, and data is inserted into the AUDIT_TABLE table.
- EA runtime error occurs. The update on the EMP table does not take place, but the insert into the AUDIT_TABLE occurs.
How the community answered
(45 responses)- A2% (1)
- B73% (33)
- C13% (6)
- D4% (2)
- E7% (3)
Community Discussion
No community discussion yet for this question.