what are the advantages of primary key over unique+notnull

Answer Posted / shilpa.oracle

Primary key accepts only unique values and does not allow
null values.

Unique key accepts unique values and allows null values.

not null constraint allows duplicate values and doesnt allow
null values.

When a primary key constraint or unique key constraint is
created by default index is created on the columns with
these constraints.

Is This Answer Correct ?    16 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can get second highest salary in sql?

505


Why coalesce is used in sql?

469


What is out parameter used for eventhough return statement can also be used in pl/sql?

583


What are all the different normalization?

560


Is pl sql better than sql?

548






Where the sql database files are stored?

485


Explain ttitle and btitle.

668


what are properties of a transaction? : Sql dba

559


What is tuple in sql?

541


Why do we need sharding?

525


What is scalar function in sql?

529


What is sql profiler in oracle?

560


What are the types of optimization?

519


what is sql server agent? : Sql dba

599


What is rownum and rowid?

566