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: Deleting Child records

Re: Deleting Child records

From: Andy Hardy <aph_at_ahardy.demon.co.uk>
Date: Fri, 24 Sep 1999 10:43:07 +0100
Message-ID: <wMJ0pDAre063EwyJ@ahardy.demon.co.uk>


In article <19990924005009.21468.00001618_at_ng-cn1.aol.com>, DRODRIGU1 <drodrigu1_at_aol.com> writes
>
>alter table ORIGINAL_TABLENAME disable primary key cascade;
>
>You should be able to delete the desired rows from your original table.
>However, you need to reinstate all the constraints that were disabled. Since
>there is no cascade for enabling constraints, you will have to enable them
>individually.
>

Won't this result in all those constraints that refer to the now absent PK values failing to enable? You'd still have to find the offending values in the child tables and remove them?

Andy
--
Andy Hardy. PGP key available on request


Received on Fri Sep 24 1999 - 04:43:07 CDT

Original text of this message

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