2. ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;中的AUTO_INCREMENT=1的含义是?
create table tb_user
(user_id
int(10) NOT NULL AUTO_INCREMENT,username
varchar(32) DEFAULT NULL,profile_img
varchar(1024) DEFAULT NULL,email
varchar(1024) DEFAULT NULL,gender
varchar(2) DEFAULT NULL,status
int(2) NOT NULL DEFAULT ‘0’ COMMENT ‘0:禁止态;1:激活’,user_type
int(2) NOT NULL DEFAULT ‘1’ COMMENT ‘1:用户,2:店家,3:超级管理员’,create_time
datetime DEFAULT NULL,last_edit_time
datetime DEFAULT NULL,
PRIMARY KEY (user_id
)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
SSM商铺V1.0,解决毕设痛点;SpringBoot商铺V2.0,满足工作刚需
了解课程