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

Can we update views in sql?

686


Write the order of precedence for validation of a column in a table? I. Done using database triggers. Ii. Done using integarity constraints

842


Explain 3 basic parts of a trigger.

1037


What is the starting oracle error number? What is meant by forward declaration in functions?

738


Which is faster union or join?

702






how to analyze tables with 'mysqlcheck'? : Sql dba

719


Is sqlite good enough for production?

734


How do I count rows in sql query?

688


What is the difference between left and left outer join?

690


What are local and global variables and their differences?

810


Why stored procedure is faster than query?

681


What is difference between stored procedure and trigger?

744


What types of commands can be executed in sql*plus?

764


Define join and name different types of joins?

712


What are all ddl commands?

741