MySql:删除主键约束

如果主键是自增长,则需要首先取消自增长

1
ALTER TABLE tb_package_removed MODIFY id INT(10) UNSIGNED; 

然后,删除主键

1
ALTER TABLE tb_package_removed DROP PRIMARY KEY;