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

What is the immediate parent class of the Applet class?

1 Answers  


What is return in java?

0 Answers  


What is matcher in java?

0 Answers  


what is data binding? give the example

1 Answers   TCS,


How does finally block differ from finalize() method?

0 Answers  






What is object-oriented programming?

0 Answers  


Why parameters should be passed by reference?

0 Answers  


what are the diffrences between interface and abstract class?

4 Answers  


What is the biggest integer?

0 Answers  


java is pure object-oriented programming language?why it is platform independent.

1 Answers  


what is difference between validation.xml & validation rules.xml?

8 Answers   BirlaSoft,


What is unicode?

1 Answers  


Categories