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: Delete on Multiple Tables

Re: Delete on Multiple Tables

From: Maxim Demenko <mdemenko_at_gmail.com>
Date: Fri, 11 Nov 2005 05:43:10 +0100
Message-ID: <dl17gs$4kt$02$1@news.t-online.com>


bdbafh_at_gmail.com schrieb:
> if there is a hierarchy, say grandparent, parent, child ...
> one could put an ON DELETE CASCADE constraint at the parent level to
> delete the rows in the tables lower in the hierarchy.
>
> another method would be via a trigger on one of the tables ...
>
> create trigger tbd_tablea
> before delete on tablea
> for each row
> begin
> delete clause for table b;
> delete clause for table c;
> commit;
> exception handler;
> end;
>
>
> kinda short, but I gotta run.
> I'll bet that Dan Morgan has some examples up on his site.
>
> -bdbafh
>

You mean it not really, do you?
 > *commit*;

Best regards

Maxim Received on Thu Nov 10 2005 - 22:43:10 CST

Original text of this message

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