只需一步,快速开始
2020-4-28 12:28| 发布者: admin| 查看: 422| 评论: 0
alter table 表名 drop primary key;
alter table user3 drop primary key;
当有 auto_increment属性时,不能直接删除primary key。
正确的操作是:先将主键的auto_increment属性去掉
评论
广告服务|投稿要求|禁言标准|版权说明|免责声明|手机版|小黑屋|推扬网 ( 粤ICP备18134897号 )|网站地图 | 邮箱:vayae@hotmail.com
GMT+8, 2026-10-25 11:01 , Processed in 0.153722 second(s), 28 queries .
Powered by Discuz! X3.4
© 2001-2017 Comsenz Inc.