What?s the difference between PRIMARY KEY and UNIQUE in
MyISAM?




Answers were Sorted based on User's Feedback



What?s the difference between PRIMARY KEY and UNIQUE in MyISAM?..

Answer / amith

PRIMARY KEY cannot be null, so essentially PRIMARY KEY is
equivalent to UNIQUE NOT NULL

Is This Answer Correct ?    28 Yes 8 No

What?s the difference between PRIMARY KEY and UNIQUE in MyISAM?..

Answer / raj

primary key is something which uniquely identifies the table
row. the value in primary key declared field can't be null
On the other hand unique avoids the duplicacy of data.

Is This Answer Correct ?    8 Yes 1 No

What?s the difference between PRIMARY KEY and UNIQUE in MyISAM?..

Answer / niraj kumar

primary key is not accept the null value.primary key is
always autoincrement.unique key is accept the one null
value.it is not a autoincrement.

Is This Answer Correct ?    4 Yes 15 No




What?s the difference between PRIMARY KEY and UNIQUE in MyISAM?..

Answer / manish

Primary Keys are used in building relationships between
tables in a database. (an index is automatically created on
the primary key). The difference between primary and
ordinary keys is that there can be multiple keys, but only
one primary key.

Is This Answer Correct ?    7 Yes 20 No

Post New Answer



More MySQL Interview Questions

What are the different mysql database engines?

0 Answers  


How to get full name of monthname ?

4 Answers  


What are the difference between and myisam and innodb?

0 Answers  


Write a program using the select statement, while loop.

0 Answers  


How to get a list of all tables in a database?

0 Answers  






explain GROUPBY & HAVING clause with examples.

0 Answers  


how to take mysql database backup?

0 Answers  


What is 'mysqlimport'?

0 Answers  


Explain Access Control Lists.

0 Answers  


What is the function of mysqldump?

0 Answers  


How to dump one database for backup.

0 Answers  


How do we use % when performing a search query?

0 Answers  






Categories