Re: Historical data; how?
From: Anton Versteeg <av_at_nll.ibmm.com>
Date: Wed, 22 Jan 2003 14:13:40 +0100
Message-ID: <3E2E9904.463A9DE6_at_nll.ibmm.com>
Date: Wed, 22 Jan 2003 14:13:40 +0100
Message-ID: <3E2E9904.463A9DE6_at_nll.ibmm.com>
No problem. You save the old value in the history.
> Anton Versteeg wrote:
>
> > Perhaps the following: Create a history table that contains all the columns
> > of the table you want keep a history of. Make the columns nullable. Then
> > create a trigger that is invoked after an update and that inserts the old
> > values into the history table. If a column didn't change then a NULL is
> > inserted.
>
> What if the column is changed to NULL?
>
> Alan Gutierrez - ajglist_at_izzy.net
-- Anton Versteeg DB2 Specialist IBM NetherlandsReceived on Wed Jan 22 2003 - 14:13:40 CET