Hi,
Maybe I'm a bit of a newbie on this one, but I can't figure this out.
I have an old application that updates a table in the database (the app was not written by me and I don't have the code, which is why I need to use a trigger to do this.) This application will update column 'value' with a number. I need a trigger to add the same number to column 'originalvalue' on insert only (not on update).
So, if the app puts 1,354 in column 'value', my trigger needs to insert 1,354 in column 'originalvalue'. When column 'value' is updated in the future, I do not want it to update column 'originalvalue'.
Can anyone help?
Thanks
Peter
Maybe I'm a bit of a newbie on this one, but I can't figure this out.
I have an old application that updates a table in the database (the app was not written by me and I don't have the code, which is why I need to use a trigger to do this.) This application will update column 'value' with a number. I need a trigger to add the same number to column 'originalvalue' on insert only (not on update).
So, if the app puts 1,354 in column 'value', my trigger needs to insert 1,354 in column 'originalvalue'. When column 'value' is updated in the future, I do not want it to update column 'originalvalue'.
Can anyone help?
Thanks
Peter