- 命令创建表
创建表SQL语句
1 create table drive_practice_statistics ( 2 id int(11) not null auto_increment, 3 uid int(11) not null comment '用户id', 4 correct_num smallint(4) not null default 0 comment '用户答对的题数', 5 total smallint(4) not null default 0 comment '用户总的答题数,错误答题数=total-correct_num', 6 mode tinyint(1) not null comment '驾照类型,1:a1,b1;2:a2,b2;3:c1,c2;4:科目四。c1和c2题目一样,a1和b1题目一样,a2和b2题目一样', 7 addtime int(10) not null default 0, 8 updatetime int(10) not null default 0, 9 primary key (id), 10 key (uid) 11 )engine=innodb default charset=utf8;
相关文章: