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

What is a pl/sql block?

595


What are three advantages to using sql?

552


Is record in oracle pl sql?

533


What is pl sql and why it is used for?

574


How to change the order of columns in Oracle SQL Plus ?

616






Can a key be both primary and foreign?

510


What is sql clause?

543


Explain dml and ddl?

552


What is a field in a database?

568


Explain the difference between rename and alias?

543


How can you view the errors encountered in a trigger?

552


How to rename a table?

558


what is the difference between sql and t-sql? : Transact sql

603


What is a subquery in sql?

511


What makes a good primary key?

524