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: Renaming a primary key

Re: Renaming a primary key

From: Daniel Morgan <dmorgan_at_exesolutions.com>
Date: Fri, 11 Oct 2002 15:16:32 GMT
Message-ID: <3DA6EB2B.3DBB91BB@exesolutions.com>


P B wrote:

> I have a set of table that look like this:
>
> One table with a P/N as a primary key and within some reference to
> other P/N
>
> One table with a P/N and a SPEC as a primary key (P/N referencing to
> the other table of course)
>
> And finally a bunch of other table referencing to the second table
> (P/N & SPEC)
>
> Question: How do I proceed to rename the primary key of the first
> table and cascade the change to all other table ?
>
> Thanks

Drop the foreign key.
Drop the primary key.
Create a new primary key.
Create a new foreign key.

Renaming is not an option.

Daniel Morgan Received on Fri Oct 11 2002 - 10:16:32 CDT

Original text of this message

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