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: DA Morgan <damorgan_at_x.washington.edu>
Date: Thu, 21 Oct 2004 18:51:27 -0700
Message-ID: <1098409834.449521@yasure>


Peloux wrote:

> 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

Great. So what's the problem? Just use a BEFORE UPDATE trigger.

Or do you want someone here to do your homework for you and write it too?

-- 
Daniel A. Morgan
University of Washington
damorgan_at_x.washington.edu
(replace 'x' with 'u' to respond)
Received on Thu Oct 21 2004 - 20:51:27 CDT

Original text of this message

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