Can a table have two primary keys?

Answer Posted / subbarayulu

No, a table should allows only one primary key with the
properties of NOT NULL + UNIQUE . But user can be able to
give more than one primary keys in a table with the help of
NOT NULL and UNIQUE KEYs but not directly using PRIMARY KEY
constraint.

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Does inner join remove duplicates?

524


how to extract a unit value from a date and time? : Sql dba

557


What is difference between rank () row_number () and dense_rank () in sql?

582


What is a primary key sql?

565


How do you modify a trigger?

528






What is the difference between truncate and drop statements?

581


tell me about various levels of constraint. : Sql dba

532


What is package in pl sql?

579


What is sqlca in db2?

536


How to create a menu in sqlplus or pl/sql?

613


How to display the records between two range in Oracle SQL Plus?

642


list out some tools through which we can draw e-r diagrams for mysql. : Sql dba

513


What is full join?

532


What is difference sql and mysql?

535


How to fetch values from testtable1 that are not in testtable2 without using not keyword?

757