MySQL Forums
Forum List  »  Triggers

Re: Each updated column name in trigger
Posted by: sunil divyeshvar
Date: January 06, 2011 02:08AM

Sir ,

i need to create one AUDIT table having data of updated column name and its old and new values.

For that i have created trigger by using old.column_name<>new.column_name,

but i have number of columns in my table and if is there any change(add column) in my table i need to recreate the trigger.

i also search it on http://www.artfulsoftware.com/infotree/Transaction time validity in MySQL.pdf

but still i m not getting answer that how to get "UPDATED COLUMN NAME" in my audit table as i dnt want to write all the column names in trigger with if and else values.


Thanks

Options: ReplyQuote


Subject
Views
Written By
Posted
3302
December 27, 2010 08:46AM
Re: Each updated column name in trigger
4395
January 06, 2011 02:08AM


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.