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

Home -> Community -> Usenet -> c.d.o.misc -> Re: How to update

Re: How to update

From: Michel Cadot <micadot{at}altern{dot}org>
Date: Thu, 21 Oct 2004 18:59:52 +0200
Message-ID: <4177ea30$0$18490$626a14ce@news.free.fr>

"Peloux" <olivierpeloux_at_yahoo.fr> a écrit dans le message de news:368998b3.0410210244.48bf19c6_at_posting.google.com...
> Hi,
> In a table i have a parent child relation :
>
> ID Name Description ParentId
> 1 data1 Description1 Null
> 2 data2 Description1 1
> 3 data3 Desscription1 1
>
>
> I would like to update child data when i update parent data with a
> trigger.
> Ex: If I update the description of the first line (ID=1), I would like
> that the rows referencing this line (parentId=1) has been updated !
>
>
> How can i do ?
>
> Thanks,
> Olivier

Have a look at Tom Kyte's white paper: "UPDATE CASCADE PACKAGE", url: http://osi.oracle.com/~tkyte/update_cascade/index.html

-- 
Regards
Michel Cadot
Received on Thu Oct 21 2004 - 11:59:52 CDT

Original text of this message

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