Re: Triggers can not use reference to tables?
Posted by:
Jay Pipes
Date: June 27, 2005 11:14PM
No, not really. NEW and OLD represent the original (OLD) and modified/inserted (NEW) data for the current *record* being operated upon.
This means that you can refer to the NEW.column or OLD.column to check the old versus new values, but you can't SELECT from them (since they're not really tables.)
Make sense?
Jay Pipes
Community Relations Manager, North America, MySQL Inc.
Got Cluster?
http://www.mysql.com/cluster
Personal:
http://jpipes.com
Subject
Views
Written By
Posted
3830
June 25, 2005 04:36AM
2377
June 25, 2005 08:29AM
2436
June 26, 2005 10:41PM
2436
June 26, 2005 11:28PM
2462
June 27, 2005 11:25PM
2625
June 27, 2005 11:04PM
Re: Triggers can not use reference to tables?
2726
June 27, 2005 11:14PM
2571
June 27, 2005 11:16PM
2442
June 28, 2005 12:37AM
2733
June 28, 2005 09:31AM
2428
June 28, 2005 11:20PM
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.