Why are you issuing an update on a database table when no updates have occurred? That is terrible programming practice.
From: Ricky Thompson [mailto:rickyt29@xxxxxxxxx]
Sent: Wednesday, June 11, 2014 8:11 AM
Subject: DB2 Auto-update TimeStamp
I know you can add a timestamp to a table that automatically updates on insert and update. But can you have it only update if there is a real change in the data? For example if a update is done to the table but no data changes I would like for it not to update the timestamp. My guess is no it's not possible but thought I would ask.
myTimeStamp TIMESTAMP NOT NULL GENERATED BY DEFAULT FOR EACH ROW ON
UPDATE AS ROW CHANGE TIMESTAMP
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing
list To post a message email: MIDRANGE-L@xxxxxxxxxxxx To subscribe,
unsubscribe, or change list options,
or email: MIDRANGE-L-request@xxxxxxxxxxxx Before posting, please take a moment to review the archives at http://archive.midrange.com/midrange-l.
This mailing list archive is Copyright 1997-2014 by MIDRANGE dot COM and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available here. If you have questions about this, please contact