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: Alkos <azerty_at_nospam.org>
Date: Wed, 19 Nov 2003 12:03:46 +0100
Message-ID: <bpfimj$44p3@news.rd.francetelecom.fr>

"Andre" <avanrossem_at_hotmail.com> a écrit dans le message news: 4d32d1be.0311190134.7b49ac68_at_posting.google.com...
> Hello all,
>
> I want to do the following:
>
> If a record is updated I have made an before update trigger which is
triggered.
> What I want to do is, instead of an update, do an insert on the same
table.
>
> So modifying a record will insert an extra record in the table.
>
> Is this possible??
>
> Thanks for all comments,
> Andre The Netherlands

I forgot to tell about another possibility in my previous post. The use of an INSTEAD OF trigger. I rememberer after reading your post once again that
somebody told me he used it to transform delete to update. I 've never tested it on my own but if I've time today, i'll try it.

Cheers,
Alkos Received on Wed Nov 19 2003 - 05:03:46 CST

Original text of this message

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