1.gid INT PRIMARY KEY AUTO_INCREMENT COMMENT ‘设置主键自增’,
2.alter table Student add primary key(Sno);
删除主键
alter table score drop primary key;
添加主键的两种方法
最新推荐文章于 2024-03-11 11:25:20 发布
1.gid INT PRIMARY KEY AUTO_INCREMENT COMMENT ‘设置主键自增’,
2.alter table Student add primary key(Sno);
删除主键
alter table score drop primary key;