Difference between primary key and unique key ?

Answer Posted / mareeswaran-jeyakani

The primary key cannot be accept the null values.The unique key can accept null values. assume that you have a two
columns column1 having primary key constraint and column2 having unique constraint if u try to insert null into column2 it will accept that values whereas column1 will not accept the null values.


THANK YOU.ALL THE BEST...............

Is This Answer Correct ?    2 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the different oracle database objects?

589


How to count groups returned with the group by clause in oracle?

580


How to create an oracle database manually?

573


How do we display rows from the table without duplicates?

550


Which is better Oracle or MS SQL? Why?

3987






Is insert autocommit in oracle?

610


Give the advantages and disadvantages of clusters.

579


How view is different from a table?

560


What happens if variable names collide with table/column names?

587


Name the various constraints used in oracle?

570


How to invoke the original export import utilities?

507


Explain joins in oracle?

561


What is a nvl function? How can it be used?

565


What is the difference between a hot backup and a cold backup in oracle?

579


What is a proxy class?

562