开发者

Is it possible to drop a primary key index in MySQL?

开发者 https://www.devze.com 2023-01-11 23:29 出处:网络
Is it possible to drop a primary key index in MySQL (version 5.1.47). This is to optimize the insert performance.开发者_开发知识库If you\'re sure this is what you want to do (note Paul Tomblin\'s com

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

This is to optimize the insert performance.开发者_开发知识库


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消