Difference between primary key and unique key ?
Answer Posted / mohammad ali
-The column holding the primary key constraint cannot accept
null values.whereas colum holding the unique constraint can
accept null values.
-We can declare only one primary key in a table
but a table can have multiple unique key
-Clustered index is created on Primary key constraint and
non clustered unique indexes is created on Unique key constraint.
-Primary key columns automatically become NOT NULL (unique
keys can contain nulls).
| Is This Answer Correct ? | 1 Yes | 2 No |
Post New Answer View All Answers
What are the built-in functions used for sending Parameters to forms ?
How to install oracle database 10g xe?
What is background process in Oracle?
How to create a stored program unit?
How to create a testing table in oracle?
Will you be able to store pictures in the database?
Please explain compound trigger in oracle?
How to add a new column to an existing table in oracle?
How to use group functions in the select clause using oracle?
What is a subquery?
Can we create trigger on materialized view in oracle?
Explain oracle’s system global area (sga).
i have a question here... As of my knowledge, when we apply an index (b-tree)on a column, internally it arranges the data in b-tree format and do the fetching process correspondingly... and my quetion is... How a bit-map index arranges the data internally when applied on a column?IS it in b-tree format or whatelse?
How do I escape a reserved word in oracle?
Using the relations and the rules set out in the notes under each relation, write statements to create the two sequence generators specified in the notes.