#创建表books11,给id添加主键自动增长约束
create table books11(
id int(8) primary key auto_increment,
name varchar(30),
price float(3),
date varchar(30)
)
#创建表books12,给表中的id添加自动增长约束
create table books12(
id int(8) primary key,
name varchar(30),
price float(3),
date varchar(30)
)
alter table books12 modify id int(8) auto_increment
#删除表books12中的自动增长约束
alter table books12 modify id int(8)
# 查看表
desc books12