MySQL Forums
Forum List  »  Triggers

Re: Triggers can not use reference to tables?
Posted by: Paul McArdle
Date: June 26, 2005 10:41PM

Currently, triggers have the same limitation as stored functions that they may not contain direct references to tables by name. This limitation will be lifted as soon as possible.

http://mysql.com/doc/mysql/en/create-trigger.html

You have to use NEW.colname or OLD.colname


... FOR EACH ROW NEW.colname = val

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: Triggers can not use reference to tables?
2549
June 26, 2005 10:41PM


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.