MySQL Forums
Forum List  »  Triggers

Re: issues with triggers
Posted by: Peter Brawley
Date: May 27, 2014 03:47PM

Two problems: an update Trigger mayn't issue an Update command on the table for which it's defined, and an After Update Trigger can't modify a row that was just updated.

Is this what you mean?

create trigger `area_aupd` before update on `area`
for each row set new.nivel=new.nivel+1;

Options: ReplyQuote


Subject
Views
Written By
Posted
2455
May 26, 2014 11:09AM
987
May 26, 2014 11:16AM
1000
May 28, 2014 10:27AM
Re: issues with triggers
1053
May 27, 2014 03:47PM


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.