MySQL Forums
Forum List  »  Triggers

Re: Acessing the subject row from a trigger...
Posted by: Bob Field
Date: July 12, 2006 02:32PM

In an update trigger, you can use the syntax OLD.colname to refer to the contents of a column in a row that is about to be updated. Then you can either INSERT or UPDATE that value into the corresponding column in the other table.

http://dev.mysql.com/doc/refman/5.0/en/using-triggers.html

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: Acessing the subject row from a trigger...
1817
July 12, 2006 02:32PM


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.