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: Drop constraint in PL@SQL

Re: Drop constraint in PL@SQL

From: Scott Mattes <Scott_at_TheMattesFamily.ws>
Date: Thu, 06 Nov 2003 14:53:01 GMT
Message-ID: <hftqb.2646$gn1.465444@news1.news.adelphia.net>


From the HTML docs at www.oracle.com

CASCADE CONSTRAINTS Specify CASCADE CONSTRAINTS to drop all referential integrity constraints that refer to primary and unique keys in the dropped table. If you omit this clause, and such referential integrity constraints exist, then Oracle returns an error and does not drop the table.

"MaisonBorniol" <maisonborniol_at_nomade.fr> wrote in message news:29f4fc84.0311052325.b62ccf4_at_posting.google.com...
> Thanks a lots,
>
>
> What I don't understand is wgy I have this error :
>
>
> ERREUR line 1 :
> ORA-02273: unique/primary key is refernced by foreign keys
> ORA-06512: line 16
>
> I'm doing this script in order to drop all my tables, but for that I
> have to drop all my constraint. And when I try to de that I have this
> error.
>
> How to drop all table (with foreign key references) for one user ?
>
> I don't want to drop the tables with a specific order....I would like
> to have a generic script.
>
> Thanks a lot for any help !
Received on Thu Nov 06 2003 - 08:53:01 CST

Original text of this message

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