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: change the primary key

Re: change the primary key

From: Connor McDonald <connor_mcdonald_at_yahoo.com>
Date: Fri, 07 Sep 2001 18:52:53 +0100
Message-ID: <3B990975.5A6@yahoo.com>


flora wrote:
>
> in oracle7, using sql*plus, if i want to change the primary key how can i do
> that? for example i have already created a table with primary key of
> "customer_name", and now i want to make "customer_id" the primary key. or i
> want to add a column named "customer_id" to be the primary key...
>
> thanks~
>
> --

You must drop and recreate the constraint

hth
connor

-- 
==============================
Connor McDonald

http://www.oracledba.co.uk

"Some days you're the pigeon, some days you're the statue..."
Received on Fri Sep 07 2001 - 12:52:53 CDT

Original text of this message

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