Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: How to add Composite Primary Key in a Table
a table CANNOT have more than one PK,
drop the current and add a composite PK
....PRIMARY KEY (COL1,COL2...)....
> ----------
> From: Mudhalvan[SMTP:mudhalvan_mm_at_yahoo.com]
> Sent: Tuesday, June 05, 2001 12:01 PM
> To: LazyDBA.com Discussion
> Subject: How to add Composite Primary Key in a Table
>
> Hi DBAs
>
> Senario :
>
> I already created a Table without any primary key. Then i altered the
> table
> using alter table and added one primary key column.
>
> Question :
>
> Shall i add one more primary key to the same table ( Compsite primary
> key).
> If so then let me know the syntax
>
> Thanks
>
> Mudhalvan M.M
> Oracle DBA
> Maveric Systems
>
>
>
> _________________________________________________________
> Do You Yahoo!?
> Get your free @yahoo.com address at http://mail.yahoo.com
>
>
> --------
> Oracle documentation is here:
> http://tahiti.oracle.com/pls/tahiti/tahiti.homepage
> To unsubscribe: send a blank email to oracledba-unsubscribe_at_LAZYDBA.com
> To subscribe: send a blank email to oracledba-subscribe_at_LAZYDBA.com
> Visit the list archive: http://www.LAZYDBA.com/odbareadmail.pl
> Tell yer mates about http://www.farAwayJobs.com
> By using this list you agree to these
> terms:http://www.lazydba.com/legal.html
>
-- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: Rahul INET: rahul_at_ratelindo.co.id 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 Tue Jun 05 2001 - 04:09:38 CDT