views:

20

answers:

1

Is it possible to drop a primary key index in MySQL (version 5.1.47).

This is to optimize the insert performance.

+2  A: 

If you're sure this is what you want to do (note Paul Tomblin's comment on your question), then from the ALTER TABLE docs:

ALTER TABLE `tablename` DROP PRIMARY KEY;

DROP PRIMARY KEY drops the primary key. If there is no primary key, an error occurs.

Dominic Rodger