题解 | #创建一张新表#
创建一张新表
https://www.nowcoder.com/practice/a61ee5519d14444aa99e530309a8e043
# create table if not exists user_info_vip ( # id int primary key auto_increment comment "自增ID", # uid int unique not null comment "用户ID", # nick_name varchar(64) comment "昵称", # achievement int default 0 comment "成就值", # level int comment "用户等级", # job varchar(32) comment "职业方向", # register_time datetime default CURRENT_TIMESTAMP comment "注册时间" # ) character set utf-8 collate utf-8_general_ci CREATE TABLE IF NOT EXISTS user_info_vip ( id int PRIMARY KEY AUTO_INCREMENT COMMENT '自增ID', uid int UNIQUE NOT NULL COMMENT '用户ID', nick_name varchar(64) COMMENT '昵称', achievement int DEFAULT 0 COMMENT '成就值', `level` int COMMENT '用户等级', job varchar(32) COMMENT '职业方向', register_time datetime DEFAULT CURRENT_TIMESTAMP COMMENT '注册时间' ) CHARACTER SET utf8 COLLATE utf8_general_ci;