mysql常用
时间:2021-03-03 12:17:55
收藏:0
阅读:0
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
评论(0)