MySQL Forums
Forum List  »  Triggers

Re: help me with this trigger
Posted by: Peter Brawley
Date: April 12, 2014 07:45AM

See the manual page for Triggers: SET new.balance, not UPDATE balance.

But if the only purpose of the balance column is to carry the diff between two other columns, it's entirely redundant, and that's a database design error. Lose it. Read about normalisation.

Options: ReplyQuote


Subject
Views
Written By
Posted
2028
April 11, 2014 08:46PM
Re: help me with this trigger
989
April 12, 2014 07:45AM


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.