2019-06-04
阅读量:
528
为已有的表添加自增列
问、为已有的表添加自增列
答:
CREATE TABLE bookcategory(
category_id int primary key,
category varchar(20) not null unique,
parent_ id int not null
)
alter table bookcategory modify category id int auto increment;






评论(0)


暂无数据
推荐帖子
0条评论
1条评论
0条评论