题解 | #创建一张新表#

创建一张新表

https://www.nowcoder.com/practice/a61ee5519d14444aa99e530309a8e043

建表的语句 : character set utf8 COLLATE utf8_general_ci ,建表之时给字段添加注释  comment '昵称';

drop table if exists user_info_vip ; 
create table user_info_vip (
   id int(11) not null primary key auto_increment  comment  '自增ID',
   uid int(11) not null unique comment '用户ID',
   nick_name varchar(64)  CHARACTER SET utf8 COLLATE utf8_general_ci comment '昵称',
   achievement int(11) default 0 comment '成就值',
   level int(11) comment '用户等级',
   job varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci comment '职业方向',
   register_time datetime default CURRENT_TIMESTAMP comment '注册时间'
)CHARACTER SET utf8 COLLATE utf8_general_ci;

全部评论

相关推荐

10-15 10:23
门头沟学院 Java
牛可乐的头像真牛:赶紧举报,这公司绝对是诈骗的,等你签约后工作一两个月后根据合同漏洞把你开除,并且要求你赔偿3w培训费,996是为了提前筛选心甘情愿签下合同容易受骗的群体,纯粹面向校招生精心设计的骗局
你见过哪些工贼行为
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务