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 to add a new column to an existing table in oracle?

827


What is oracle and what are its different editions?

775


What is user managed backup in Oracle?

815


How to calculate date and time differences in oracle?

741


Can u please explain me the Discussion on Except ,using cast like type cast. Question in the context of difference between two tables

1772


What is the string concatenation operator in oracle?

772


How to export data with a field delimiter?

766


How to recover a dropped table in oracle?

785


What is an oracle recycle bin?

707


can u plz provide me oca sql dumps please i need them

1670


How can windows applications connect to oracle servers?

698


what is insert all statement in sql

5909


Why does oracle 9i treat an empty string as null?

726


Does oracle partitioning improve performance?

724


What are set operators?

815