热线电话:13121318867

登录
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.0000
1
关注作者
收藏
评论(0)

发表评论

暂无数据
推荐帖子