what are the advantages of primary key over unique+notnull

Answer Posted / tulsi

Primary key will avoid duplicate and null values in a table
which the combination of unique+not null will do.But the
advantage is,if a table has primary key we can create
relation to child tables.

Is This Answer Correct ?    28 Yes 13 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is anonymous block in sql?

850


Is hadoop a nosql?

754


What are the two virtual tables available at the time of database trigger execution?

898


How can I get the number of records affected by a stored procedure?

776


How do I restart sql?

739


What do you understand by pl/sql packages?

792


What is gpt format?

709


What is view? Can we update view

1096


Is it possible to read/write files to-and-from PL/SQL?

852


How you improve the performance of sql*loader? : aql loader

769


What is a schema sql?

768


what are the different functions in sorting an array? : Sql dba

775


What is the difference between function, procedure and package in pl/sql?

788


Explain sql data types?

836


What are the operators in sql?

765