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
Are sql database names case sensitive?
Define implicit and explicit cursors.
What can I use instead of union in sql?
what is row? : Sql dba
What is the basic structure of an sql?
what is 'mysqlshow'? : Sql dba
Is join and inner join the same?
What is the difference between alter trigger and drop trigger statements?
What is optimistic concurrency control? : Transact sql
What is integrity in sql?
What are database links used for?
what are the advantages a stored procedure? : Sql dba
How delete a row in sql?
What is package in pl sql with an examples?
What are the datatypes available in pl/sql ?