MySQL Forums
Forum List  »  Triggers

Re: Enforce business rule with before insert trigger?
Posted by: Bob Field
Date: December 29, 2005 03:45PM

Hello all,

I'm new here and I think this is the appropriate place to ask this:

I have a pair of tables, the first of which store a unique sequence number for each transaction, and the second that stores the detail lines of the transaction. I will be adding all the detail lines to the second table via a single INSERT operation and wish to have a trigger that fires upon completion of inserting these rows in order to calculate the total amount of these detail lines and be able to roll back the entire operation if the total does not meet my criteria.

Any insights here?

Thanks in advance,


Options: ReplyQuote

Written By
Re: Enforce business rule with before insert trigger?
December 29, 2005 03:45PM

Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.