What is difference between UNIQUE constraint and PRIMARY KEY
constraint ?

Answers were Sorted based on User's Feedback



What is difference between UNIQUE constraint and PRIMARY KEY constraint ?..

Answer / allin

The Primarykey Constraint= unique + Not Null constraints.
For the Unique the meaning it self it is telling unique
value. won't accept duplicate values.

Thanks & Regards,
RatnaRao
9833847339

Is This Answer Correct ?    9 Yes 0 No

What is difference between UNIQUE constraint and PRIMARY KEY constraint ?..

Answer / naren

When ever you create a primary key constraint on perticular
column in a table it creates clustered index by default,
it cannot allow null values and a table having only one
primary key constraint. But in the case of Unique Key
constraint, it allow only one null value, it creates non-
clustered index by default and a table having multiple
unique key constraints.


Regards
Naren Krishna

Is This Answer Correct ?    8 Yes 3 No

What is difference between UNIQUE constraint and PRIMARY KEY constraint ?..

Answer / kiran

if unique then it can have null

but if column has primary then it cannot have null values
and duplicate values

Is This Answer Correct ?    2 Yes 1 No

Post New Answer

More Oracle General Interview Questions

Explain the truncate in oracle?

0 Answers  


What is a Segment ?

1 Answers  


How you open and close a cursor variable.Why it is required?

2 Answers  


What are the types of partitions in oracle?

0 Answers  


How to rename an index?

0 Answers  






What is a connect identifier?

0 Answers  


How to select all columns of all rows from a table in oracle?

0 Answers  


What is a Sequence ?

3 Answers  


Can group functions be used in the order by clause in oracle?

0 Answers  


If a parameter is used in a query without being previously defined, what diff. exist betw. report 2.0 and 2.5 when the query is applied ?

0 Answers   Oracle,


What is the difference between hot backup and cold backup in oracle? Tell about their benefits also.

0 Answers  


Difference between join and a subquery?

8 Answers   Base Automation, NMDC,


Categories
  • Oracle General Interview Questions Oracle General (1789)
  • Oracle DBA (Database Administration) Interview Questions Oracle DBA (Database Administration) (261)
  • Oracle Call Interface (OCI) Interview Questions Oracle Call Interface (OCI) (10)
  • Oracle Architecture Interview Questions Oracle Architecture (90)
  • Oracle Security Interview Questions Oracle Security (38)
  • Oracle Forms Reports Interview Questions Oracle Forms Reports (510)
  • Oracle Data Integrator (ODI) Interview Questions Oracle Data Integrator (ODI) (120)
  • Oracle ETL Interview Questions Oracle ETL (15)
  • Oracle RAC Interview Questions Oracle RAC (93)
  • Oracle D2K Interview Questions Oracle D2K (72)
  • Oracle AllOther Interview Questions Oracle AllOther (241)