Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: Drop Table with Foreign Constraints & Indexes
Hans Forbrich wrote:
> Ste wrote:
>
>> Hi, >> >> I would like to seek help dropping a table with foreign keys being >> referenced to and referencing other table. Do we disable constraints >> first before "drop table constraints cascade"? Would dropping this >> table drop other foreign key referenced table too? >> >> Thanks for any comments. >> >> Ste
Er, hold your horses!
Oracle *never* drops child tables. It never even drops child *rows*. All the 'cascade constraints' keywords do is to get rid of the *constraint*. Child rows and tables are left 100% inviolate and unaffected by the use of those keywords...
> don't
> include CASCADE CONSTRAINTS ... OR drop the associated constraint.
Again, you're implying that 'cascade constraints' does an awful lot more (and an awful lot more damage) that it actually does.
It does nothing more than drop the associated constraint for you, automatically, and is therefore quite safe to use.
Regards
HJR
>
> /Hans
Received on Fri Sep 24 2004 - 21:08:59 CDT