Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.misc -> Re: Viewing names of keys in sql plus?
Paul Sian wrote:
>
> I am working on a database right now, basically just the framework.
> Anyways there are some things I want to change. I need to drop a table but
> there is a key referenced in another table preventing me from doing that.
> How do I show a list of the primary/foreign keys so I can know what key to drop?
> Thanks
You could always try doing,
DROP TABLE <table_name> CASCADE;
This will drop the table and any foreign ket references to it all at the same time.
Hope this helps! Received on Thu Sep 17 1998 - 00:00:00 CDT