What is difference between UNIQUE constraint and PRIMARY KEY
constraint ?

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

How do we display rows from the table without duplicates?

562


State and explain the different types of data models?

542


What is the quickest way to fetch the data from a table?

576


How to insert a record into a table?

651


src name sex a,male b,female c,male d,female Required output : male female a,b c,d tried pivot but was not successfull select * from src pivot (max(name) for sex in ('MALE','FEMALE'));

1188






How to create lov dynamically at runtime & attach to text field?

674


Explain about achiever in sql?

592


Explain the use of control file?

663


How to use "if" statements on multiple conditions?

729


What is a procedure in oracle?

624


How do we get field detail of a table?

637


What are data pump export and import modes?

622


What are the differences between lov and list item?

569


What view(s) do you use to associate a users SQLPLUS session with his o/s process?

1917


Explain the difference between a procedure and a function? What do you understand by those terms?

632