mysql常用

时间:2021-03-02 22:28:58   收藏:0   阅读:27

1,将id列放在第一列

alter table cqc_xa.cqc_xa_diff_case modify id int unsigned auto_increment first;

2,增加自增id

alter table test.student add column indexxx int(14) primary key auto_increment after first;

3,修改表名

ALTER  TABLE table_name RENAME TO new_table_name

 

原文:https://www.cnblogs.com/aixiao07/p/14471524.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!