实现,用户的学号,自动增长, create table stu4( id int primary key auto_increment, name varchar(50) ); ##插入数据 insert into stu4(name) values(“zsf”); insert into stu4(name) values(“zs”);
自增长列(auto_increment)实现,用户的学号,自动增长,create table stu4(id int primary key auto_increment,name varchar(50)); ##插入数据insert into stu4(name) values(“zsf”);insert into stu4(name) values(“zs”);