Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Trigger question - deletion of records

399651Aug 8 2007 — edited Aug 9 2007
Hello All,

I have a question about triggers. I have a before delete trigger that will copy a record to a retire table before it is deleted from a business table. That all works fine, but I also want the trigger to raise an error if the record to be deleted does not exist in the business table. I have tried various things and cannot seem to get this part to work.

Is it possible for a before or after delete trigger to raise an error about a record that does not exist in a table? Does anyone have any examples?

many thanks!!
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 6 2007
Added on Aug 8 2007
7 comments
1,582 views