What is the diff. bwt. primary key and unique key?

Answers were Sorted based on User's Feedback



What is the diff. bwt. primary key and unique key?..

Answer / janhvee

diff. between primary key and unique is unique key can be
null but primary key can't be null.

one table can have only one primary key but unique key can
be multiple keys

Is This Answer Correct ?    17 Yes 0 No

What is the diff. bwt. primary key and unique key?..

Answer / rakesh ranjan

IN PRIMARY KEY IS ONLY IN ANY TABLE BUT WHEN WE TALKING
ABOUT UNIQUE KEY, IT CAN BE NULL.

Is This Answer Correct ?    5 Yes 1 No

What is the diff. bwt. primary key and unique key?..

Answer / jeyaprakash

primary is not allow null value.but unique can be allow null
value

Is This Answer Correct ?    3 Yes 0 No

What is the diff. bwt. primary key and unique key?..

Answer / sonu kumar

primary of any table can't be null but unique can be
primary key may be a unique key but unique can't be a primary key b/c primary key of any relation cant be a null value

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More MySQL Interview Questions

If you are assigned a task, to find the information of procedures. What are the basic commands that you will use to do so?

0 Answers  


What is username in mysql?

0 Answers  


How do I run a query in mysql?

0 Answers  


i made a table in sql server 2000 and in a column i want to add image path of a picture present in my hardisk... so using insert statement how will i insert the path of the image in the table??

1 Answers   WebTech,


Is mysql relational database?

0 Answers  






How do I connect to a database in mysql workbench?

0 Answers  


Is there an object-oriented version of MySQL library functions?

1 Answers  


Are stored procedures precompiled?

0 Answers  


how to take mysql database structure backup

6 Answers  


How to use rank function in mysql?

0 Answers  


Why is mysql popular?

0 Answers  


What is difference between mysql and mysql server?

0 Answers  


Categories