Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Re: Cascade deleting
You would need 2 tables
One with parents and one with children.
You can then use triggers or standard referential interity constraints.
HTH
-- Niall Litchfield Oracle DBA Audit Commission UK "erton" <aerton_at_poczt.onet.pl> wrote in message news:9onf56$bvh$1_at_news.onet.pl...Received on Mon Sep 24 2001 - 09:38:57 CDT
> Hi
>
> I have a table, which is composed of two fields:
> -ID
> -ParentID
> I would like to make cascade deleting (deleting record with ID x cause
> deleting all records which have ParentID equal to x). How can I do it? I
> have tried to do it in a trigger and by constraints but it doesn't work.
>
> Thanks
>
>
>
>
![]() |
![]() |