Difference between primary key and unique key ?

Answer Posted / yjreddy

primary key doesnt allow duplicates and null values
unique key allows null value only once
and more over
when you applying primary key by default clustered index is created on that table
when u applying unique key non clustered index is created on that table.
so primary key can be allowed only once(1) and unique u can apply more
than one on a single table(249)

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can I get column names from a table in oracle?

538


Which environment variables are absolutely critical in order to run the OUI?

1659


How can Oracle users be audited?

610


does the query needs a hint to access a materialized view?

1468


How do I manually create a database in oracle?

548






What is a procedure in oracle?

618


What is bulk load in oracle?

597


what is the difference between functional dependecy and multilevel dependency?

1994


22. Display the order number, number of lines in the order, total number of items and total value for all orders that have a total value greater than $100

1608


Why is oracle used?

557


What happens to the current transaction if a ddl statement is executed?

580


Differentiate between post-database commit and post-form commit?

545


please explain.. DB architecture ...

1567


what is difference between sql plus and sql*plus? (not sql and sql plus).

3350


What are the differences between number and binary_float in oracle?

571