Can a table have two primary keys?

Answer Posted / subbu

Well the question is

Can a table have two primary keys?

Practically Yes.

But theoritically there will be only 1 primary key with
multiple foriegn keys which acts as a composite keys for the
original primary key. How ever in the create or alter
statements, we need to write primary key only once following
the column names either single or multiple.

By seeing the posts, I believe some of the guys has got
confused with the question & compared it with the SQL create
statements where in Primary Key is written only once & by
which concluding that a table cannot have multiple primary keys.

Is This Answer Correct ?    1 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can one improve the performance of sql*loader? : aql loader

587


what is the bond code in materialized view?

2489


Can we create table inside stored procedure?

532


Is left join inner or outer?

589


Is record in oracle pl sql?

533






What is trigger explain it?

551


what is oracle database ? : Sql dba

559


How many triggers can be applied to a table?

600


Can you load data into multiple tables at once? : aql loader

604


What is sql keyword?

563


Where not exists in sql?

503


What are % type and % rowtype?

576


What is the difference between rename and alias?

709


What are sql procedures?

582


What is the sql*loader? : aql loader

589