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 ?    29 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 / rishu

A table can have only one Primary Key, while it can have multiple Unique Keys/constraints.

Is This Answer Correct ?    0 Yes 0 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

How to calculate the difference between two dates?

1 Answers  


What are the difference between and myisam and innodb?

1 Answers  


How do I add a column to a table in mysql?

1 Answers  


How to allow the user "sonia" to connect to the server from localhost using the password "passwd". Login as root. Switch to the mysql db. Give privs. Update privs.

1 Answers  


How do I rename a procedure?

1 Answers  


How to rename an existing column in a table?

1 Answers  


Are stored procedures precompiled?

1 Answers  


How do I show users in mysql?

1 Answers  


What are the non-standard sql commands supported by 'mysql'?

1 Answers  


What does a TIMESTAMP do on UPDATE CURRENT_TIMESTAMP data type?

1 Answers  


How does php communicate with mysql?

1 Answers  


How can you do the fine tunning?

3 Answers   ACC,


Categories