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

What are different clauses used in sql?

813


What is your daily office routine?

1986


what are string data types? : Sql dba

700


Can there be 2 primary keys in a table?

725


What is the requirement of self-join?

740






Explain 3 basic parts of a trigger.

1037


How can get second highest salary in sql?

690


How do I count records in sql?

731


Mention what problem one might face while writing log information to a data-base table in pl/sql?

871


What is oracle sql called?

673


How do you take the union of two tables in sql?

731


What is the difference between the sql*loader and import utilities? : aql loader

757


What is mdf ldf and ndf?

744


what are the differences between char and varchar? : Sql dba

748


Can triggers stop a dml statement from executing on a table?

805