Archives of the TeradataForum
Message Posted: Tue, 11 Mar 2003 @ 11:43:33 GMT
I read ahead to a couple of responses.
I have a table that has a trigger that does a before update write to a history table. The history table has the current timestamp as the default value. When a row is updated in table 1, the old version is written to table 2. although the sequence number is not 1,2,3, you could certainly derive a sequence by ordering on the current time stamp.
I can post that trigger if it would help.
|Copyright 2016 - All Rights Reserved|
|Last Modified: 27 Dec 2016|