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 |
How can two threads be made to communicate with each other?
Write a program to check for a prime number in java?
Is string is a class in java?
What is an off by one error in java?
If you are reviewing the code of your team members, what points will you look at, assuming the performance of the application is not so great
which methods consisting of the serilizable interface?
What is Java Reflection API? Why it’s so important to have?
Why does java have two ways to create child threads?
Difference in the use of print, println, and printf.
When can we say that threads are not lightweight process in java?
Hi Friends, can u give me Real Time example for interface and abstract class.(With Banking Example)
What are the types of loops in Java, and how are they used?