MySQL Forums
Forum List  »  Triggers

Re: determine if column has been updated
Posted by: Peter Brawley
Date: August 11, 2016 11:57PM

In an Update Trigger, if NEW.col is null and OLD.col is not null, it's been updated, or if OLD.col is null and NEW.col isn't, it's been updated, or if neither is null and OLD<>NEW it's been updated, else not.

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: determine if column has been updated
506
August 11, 2016 11:57PM


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.