Difference between primary key and unique key ?

Answer Posted / manoj routh

Both primary key and unique enforce uniqueness of the column
on which they are defined. But by default primary key
creates a clustered index on the column, where are unique
creates a nonclustered index by default. Another major
difference is that, primary key doesn't allow NULLs, but
unique key allows one NULL only.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

candidate key is subset of super key but not vice-verse explain

1807


Explain the use of show option in imp command.

865


What are operators in oracle?

825


How to open and close an explicit cursor in oracle?

826


how to clone 9i Database on to 10g Database.

2109


How to create id with auto_increment on oracle?

769


How do I call oracle stored procedures that take no parameters?

811


What is object data modeling?

728


what is IDE,DMV in sql server?

2524


Using the relations and the rules set out in the notes under each relation, write statements to create the two sequence generators specified in the notes.

1896


Is truncate autocommit in oracle?

872


what is the need of indexing topic in oracle? where do we use in a Java project? any other option other than using this to get the same result where we use indexing ?

2264


What are transaction isolation levels supported by oracle?

799


Explain the importance of .pll extension in oracle?

787


How to create tables for odbc connection testing?

749