开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜