Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: how to change a foreign key back to a primary key
Trang,
How about:
alter table TABLE_NAME drop constraint CONSTRAINT_NAME;
alter table TABLE_NAME add constraint pk_TABLE_NAME primary key (COLUMN)
using index tablespace indexes;
-----Original Message-----
Sent: Wednesday, May 29, 2002 7:06 PM
To: Multiple recipients of list ORACLE-L
Hi,
I need to change a foreign key back to a primary key in a table. How do I do that. Please help.
Thanks in advance.
Trang
Do You Yahoo!?
Yahoo! <http://rd.yahoo.com/welcome/*http://fifaworldcup.yahoo.com> -
Official partner of 2002 FIFA World Cup
--
Please see the official ORACLE-L FAQ: http://www.orafaq.com
--
Author: Richard Huntley
INET: rhuntley_at_mindleaders.com
Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Lists --------------------------------------------------------------------To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing). Received on Thu May 30 2002 - 10:38:26 CDT
![]() |
![]() |