0

suppose that

  • i make an insert into a table using Java Jdbc
  • the insert fire a trigger

java waits that the trigger finish the execution or it continue the execution??

(using oracle 11g)

if it dose continue without wait, there i way to wait the end of the trigger execution?

2 Answers 2

1

The INSERT statement is not complete until all the triggers that need to fire have fired and run to completion. It doesn't matter what front-end language you use to issue the INSERT statement, the INSERT must always wait for the triggers to complete.

Sign up to request clarification or add additional context in comments.

Comments

0

Even If a INSERT calls N NUMBER OF TRIGGER, First all the TRIGGERS will complete execution while the INSERT will wait, and then it will come back to INSERT

that is logical as well, if I am firing some triggers before inserting into a database than I would want them to complete before inserting.

The JAVA wont move to next statement until the INSERT statement responds and it wont respond until it has completed execution and it will not complete execution until All Triggers that are Triggered are completed.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.