Difference between primary key and unique key ?
Answer Posted / sandhya
Primary Key cannot contain null values
Each table has one and only one Primary Key
Primary Key is used to reference as Foreign key while
performing table joins
Clustered index is created on Primary Key
Unique Key can contain null value
A table can have any numberof unique keys
Non-clustered index is created on unique key columns
| Is This Answer Correct ? | 2 Yes | 1 No |
Post New Answer View All Answers
How to write a query with a left outer join in oracle?
What is using clause and give example?
Explain coalesce function?
What is a directory object?
What privilege is needed for a user to create indexes in oracle?
What are internal user account in oracle?
How to view the data files in the current database?
What do you mean by merge in oracle and how can you merge two tables?
How to fetch the row which has the max value for a column?
WHEN CURSOR MOVES FROM ONE FORM TO ANOTHER FORM, HOW MANY TRIGGER WILL BE FIRED AND WHAT ARE THEIR SEQUENCE?
What is a view and how is it different from a table?
How to sort the query output in oracle?
What is the recommended interval at which to run statspack snapshots, and why?
What privilege is needed for a user to create views in oracle?
How do I use unicode codesets with the weblogic jdriver for oracle driver?