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

How to concatenate two text values in oracle?

607


State all possible different index configurations a table can possibly have?

582


How to invoke the data pump export utility?

578


Explain the different normalization forms?

607


How to define an anonymous block?

626






ABOUT IDENTITY?

1578


how the Oracle Prepares the Execution Plan and how it chooses the Optimal one?

1845


What is program global area (pga) in oracle?

615


What is the quickest way to fetch the data from a table?

578


Tab A A B ------ 1 A 2 B 3 C Tab B A B ----- 4 D 5 E 6 F Generate the value into B table from A table. Only table A has the value. Write the SQL query to get B table value.

1270


Explain constraining triggers.

614


How to see free space of each tablespace?

606


How to drop an index?

551


What is meant by joins?

637


Explain what are clusters?

626