MySQL删除主键的操作方法
生活随笔
收集整理的這篇文章主要介紹了
MySQL删除主键的操作方法
小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
#先刪除自增長在刪除主鍵
#alter table t_name change id id int;-- 刪除自增長
#alter table t_name drop primary key;-- 刪除主建
#alter table t_name change id id int;-- 刪除自增長
#alter table t_name drop primary key;-- 刪除主建
總結(jié)
以上是生活随笔為你收集整理的MySQL删除主键的操作方法的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 特斯拉总体规划会将至,分析称马斯克画饼太
- 下一篇: 月息三分利是多少