Hi,
I have an insert trigger which populates few other tables. After populating the tables i need to delete the row which got inserted( one which actioned the trigger). can this be done?
You might try this: Have the application which inserts the row which fires the trigger immediately delete the row it just inserted. That way the after insert trigger will have fired and done its work on all the other tables and the row you want deleted will be gone. Don't forget to do a commit in there somewhere.
You may store PK of newly inserted row(s) in package variable and delete those records in after insert statement level trigger. The same way as with mutating error.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.