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

Home -> Community -> Usenet -> c.d.o.server -> Re: -- insert instead of an update

Re: -- insert instead of an update

From: John Russell <netnews8_at_johnrussell.mailshell.com>
Date: Tue, 02 Dec 2003 04:32:27 GMT
Message-ID: <q15osv0g5a6qd96rtfk6eb7gf7f0cq6s13@4ax.com>


On Mon, 1 Dec 2003 10:48:15 +0100, "Alkos" <azerty_at_nospam.org> wrote:
>Logical view behaves simply as we expect (delete deletes record, update
>updates and insert inserts)
>the underlying table behaves another way (delete marks a record as deleted,
>update updates but insert the old version into a new row)
>
>My goal is to keep many versions of reference data in my database so I'm
>testing different solutions (triggers was one, I keep on searching ;-).
>Needless to say that I give up the "instead of triggers" solution :))

Why not insert the old version into a different table, and do your queries against a view that does a UNION between the "current" and "old" tables?

John

--
Photo gallery: http://www.pbase.com/john_russell/
Received on Mon Dec 01 2003 - 22:32:27 CST

Original text of this message

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