Difference between primary key and unique key ?
Answer Posted / pramod paunikar
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 non-clustered index by default. Another
major difference is that, primary key does not allow NULLs,
but unique key allows only one NULL only.
| Is This Answer Correct ? | 2 Yes | 1 No |
Post New Answer View All Answers
What is the difference between translate and replace?
What is a cursor and what are the steps need to be taken?
How to insert multiple rows with one insert statement in oracle?
What is object data modeling?
What are the different types of partitions in oracle?
What is different types of joins?
How do I know if oracle client is installed on windows?
How to load excel data sheet to oracle database
What are the varoius components of physical database structure of oracle database?
Is oracle a relational database?
Which is better Oracle or MS SQL? Why?
What is Reduced List of Values?
In Oracle Clinical 4.5.0, can the VIEW_TEMPLATE_ID column in DATA_EXTRACT_VIEWS table contain NULL value?
How to do a full database export?
You have found corruption in a tablespace that contains static tables that are part of a database that is in NOARCHIVE log mode. How would you restore the tablespace without losing new data in the other tablespaces?