Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> comp.databases.theory -> Re: Historical data; how?

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@nll.ibmm.com>


No problem. You save the old value in the history.

Alan Gutierrez wrote:

> 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 Netherlands
Received on Wed Jan 22 2003 - 07:13:40 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US