MySQL Forums
Forum List  »  Triggers

Re: Dynamic column name while operating with NEW/OLD
Posted by: Peter Brawley
Date: February 04, 2015 12:34PM

> Is there any way to get NEW.@field

Sorry, SQL is (deliberately) literal-minded, it's not a complete language.

The only way I know to write a general-case Trigger is to write a parameterised Trigger-generation class or function in a complete language like C# or PHP, then generate the literal Triggers from there.

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: Dynamic column name while operating with NEW/OLD
2038
February 04, 2015 12:34PM


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.