what is difference between "Primary key" and "Unique key"?

Answer Posted / nitin gupta

Uniques: Enforce unique data in the database
it allows row containing null value but only once
It implements non clustered index.

primary key: Enforce unique data in the database
it don't allow any record containing null value
it implements clustered index (data physically
sorted)

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

List the ways to get the count of records in a table?

586


Explain the uses of database trigger.

760


Can we call a function containing dml statements in a select query?

638


What are the different types of a subquery?

609


Mention what is the plv (pl/vision) package offers?

737






how many sql dml commands are supported by 'mysql'? : Sql dba

669


Are subqueries faster than joins?

650


How do you create a unique index?

663


What is sql key?

610


What is synchronized subquery?

709


What is transaction control language (tcl)?

747


What is string data type in sql?

629


How do I start pl sql?

577


What is pl sql code?

678


Is pl sql and postgresql same?

672