Difference between Primary key and unique key?
Answers were Sorted based on User's Feedback
Answer / deepali b. baviskar
Unique key can be NULL but Primary key couldn't be NULL.
| Is This Answer Correct ? | 11 Yes | 0 No |
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 |
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 |
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 |
Is 64bit faster than 32 bit?
What is the size of string?
Discuss 2D arrays.
can two class in a code be public??if yes then how??
What is the diffrence between inner class and nested class?
Can we increase size of array?
What is the java virtual machine?
Can we use catch statement for checked exceptions when there is no chance of raising exception in our code?
Can bool be null?
Hi Friends, can you explain instance in java. In general instance means "occurence of something" . In java what is instance.
What is the return type of a program?s main() method?
Write a program in java to establish a connection between client and server?