Difference between primary key and unique key ?
Answer Posted / bhushan tatar
column having primary key constraint should not contain
null values.
column having unique key constraint can contain null values.
Unique as well as primary key constraint can be
defined/applyed on more than one column.
EX.
ADD constraint uc_person UNIQUE(P_Id,Lastname)
ADD constraint uc_person PRIMARY KEY(P_Id,Lastname)
But whle creating table we can write unique key word
multiple time and primary key wprd only once.Because table
can have only one primary key and can have miltiple unique
key.But both can apply on more than one column.
and
| Is This Answer Correct ? | 10 Yes | 9 No |
Post New Answer View All Answers
List out the difference between commit, rollback, and savepoint?
you are a universe designer and report developer in BO, what type of information you gather from client?Briefly explain plz
How many types of auditing in Oracle?
How to define a data field as not null?
What happens if you set the sga too low in oracle?
How to grant create session privilege to a user in oracle?
How to export several tables together?
What is where clause in oracle?
How to list all tables in your schema?
What is Redo Log Buffer in Oracle?
How view is different from a table?
How to concatenate two text values in oracle?
What do you understand by a database object?
Respected sir, Please send me technical questions related to oracle apps..
What is a nested table?