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 to create a new table by selecting rows from another table in mysql? : Sql dba

563


What are the advantages of pl sql over sql?

548


What is view explain with example?

521


What is a parameter query?

626


What are the parameter modes supported by pl/sql?

536






what are different types of keys in sql?

608


Should I use mbr or gpt?

546


Can we create a trigger on view?

491


Who is the owner of mysql database?

553


What is sqlerrm?

551


Which normal form is best?

517


How does cross join work in sql?

535


What is clustered index in sql?

592


What is a database event trigger?

598


How to fetch alternate records from a table?

684