Difference between Primary key and unique key?

Answers were Sorted based on User's Feedback



Difference between Primary key and unique key?..

Answer / deepali b. baviskar

Unique key can be NULL but Primary key couldn't be NULL.

Is This Answer Correct ?    11 Yes 0 No

Difference between Primary key and unique key?..

Answer / sraboni mondal

primary key is a key which is totally unique key and unique
has null values

Is This Answer Correct ?    0 Yes 1 No

Difference between Primary key and unique key?..

Answer / sohini ghosh

In RDBMS, a unique key can uniquely identify each row in a
table, and is closely related to the Super key concept. A
unique key comprises a single column or a set of columns.it
can be null.


A primary key is a special case of unique key. Primary keys
may consist of a single attribute or multiple attributes in
combination.It can't be null..

Is This Answer Correct ?    0 Yes 2 No

Difference between Primary key and unique key?..

Answer / keerthi

primary key is a field that can serve as unique identifier in table.ex:customer id.

Is This Answer Correct ?    1 Yes 4 No

Post New Answer

More Core Java Interview Questions

how tha garbage collector know that the object will be deleted? on which algorithm the garbage collector works? what is the working principle of garbage collector? How manay types of garbage collectors r there?

1 Answers   HP, SparkTG,


What is the use of static keyword in "public static void main()"

10 Answers   College School Exams Tests, Infosys, Six Dee Telecom,


What is jee6?

0 Answers  


What is the difference between throw and throws keywords?

0 Answers  


What are keywords and reserved words in java?

0 Answers  






What is the difference between Static and final?

1 Answers  


How is a variable stored in memory?

0 Answers  


What is JVM ? use of JVM?

6 Answers   BVC, Tech Mahindra,


What is a boolean expression in java?

0 Answers  


Can memory leak in java?

0 Answers  


What are the different types of java?

0 Answers  


wht is customised exception?

1 Answers   Logica CMG, Novell, Prudential,


Categories