简单的小数据库设计

/*
Navicat MySQL Data Transfer

Source Server         : java48
Source Server Version : 50721
Source Host           : localhost:3306
Source Database       : driver_manage_group_2

Target Server Type    : MYSQL
Target Server Version : 50721
File Encoding         : 65001

Date: 2018-04-02 15:25:56
*/

SET FOREIGN_KEY_CHECKS=0;

-- ----------------------------
-- Table structure for center
-- ----------------------------
DROP TABLE IF EXISTS `center`;
CREATE TABLE `center` (
  `centerId` int(6) NOT NULL AUTO_INCREMENT COMMENT '中心序号',
  `centerName` varchar(40) NOT NULL COMMENT '中心名称',
  `centerCode` varchar(20) NOT NULL COMMENT '中心编码',
  `phone` varchar(50) NOT NULL COMMENT '中心电话',
  `address` varchar(255) NOT NULL COMMENT '中心地址',
  `info` text COMMENT '中心信息',
  PRIMARY KEY (`centerId`)
) ENGINE=InnoDB AUTO_INCREMENT=111 DEFAULT CHARSET=utf8;

-- ----------------------------
-- Records of center
-- ----------------------------
INSERT INTO `center` VALUES ('101', '瑶海中心', '101', '18255109670', '安徽', '开开心心学车');
INSERT INTO `center` VALUES ('102', '蜀山中心', '102', '18255109671', '安徽', '开开心心学车');
INSERT INTO `center` VALUES ('103', '合肥中心    ', '550', '13755550000', '合肥', '学车了');
INSERT INTO `center` VALUES ('104', '肥西中心', '104', '18255109673', '安徽', '开开心心学车');
INSERT INTO `center` VALUES ('105', '肥东中心', '105', '18255109674', '安徽', '开开心心学车');
INSERT INTO `center` VALUES ('106', '三河中心', '106', '18255109675', '安徽', '开开心心学车');
INSERT INTO `center` VALUES ('107', '滨湖中心', '107', '18255109676', '安徽', '开开心心学车');
INSERT INTO `center` VALUES ('108', '巢湖中心', '108', '18255109677', '安徽', '开开心心学车');
INSERT INTO `center` VALUES ('109', '黄山中心', '109', '18255109678', '安徽', '开开心心学车');
INSERT INTO `center` VALUES ('110', '紫湖中心', '110', '18255109679', '安徽', '开开心心学车');

-- ----------------------------
-- Table structure for coach
-- ----------------------------
DROP TABLE IF EXISTS `coach`;
CREATE TABLE `coach` (
  `coachId` int(6) NOT NULL AUTO_INCREMENT COMMENT '教练序号',
  `coaName` varchar(40) NOT NULL COMMENT '教练名称',
  `coaPassWord` varchar(20) NOT NULL COMMENT '教练密码',
  `coaGender` varchar(4) NOT NULL COMMENT '教练性别',
  `coaPhone` varchar(50) NOT NULL COMMENT '教练电话',
  `coaAddress` varchar(255) NOT NULL COMMENT '教练地址',
  `coaBornDate` datetime DEFAULT NULL COMMENT '教练生日',
  `centerId` int(6) NOT NULL COMMENT '中心id',
  `subjectId` int(6) NOT NULL COMMENT '科目类型',
  `licenseTypeId` int(6) NOT NULL COMMENT '驾照类型',
  PRIMARY KEY (`coachId`),
  KEY `fk_coach_centerId` (`centerId`),
  KEY `fk_coach_licenseTypeId` (`licenseTypeId`),
  KEY `fk_coach_subjectId` (`subjectId`),
  CONSTRAINT `fk_coach_centerId` FOREIGN KEY (`centerId`) REFERENCES `center` (`centerId`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `fk_coach_licenseTypeId` FOREIGN KEY (`licenseTypeId`) REFERENCES `licensetype` (`licenseTypeId`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `fk_coach_subjectId` FOREIGN KEY (`subjectId`) REFERENCES `subject` (`subjectId`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=714 DEFAULT CHARSET=utf8;

-- ----------------------------
-- Records of coach
-- ----------------------------
INSERT INTO `coach` VALUES ('701', '白小纯', '123456', '男', '12345678912', '瑶海区', null, '101', '601', '501');
INSERT INTO `coach` VALUES ('702', '钱大莫', 'asdsok', '男', '13652169748', '合肥瑶海区胜利路', '1976-11-15 11:11:11', '102', '602', '502');
INSERT INTO `coach` VALUES ('703', '王小琼', 'akidgk', '女', '13657668248', '合肥蜀山区淠河路', '1972-11-17 11:11:11', '103', '603', '503');
INSERT INTO `coach` VALUES ('704', '李小离', 'asdfgk', '男', '13654361948', '合肥蜀山区史河路', '1974-11-14 11:11:11', '102', '603', '502');
INSERT INTO `coach` VALUES ('706', '吴小琼', 'akifgk', '男', '13656668248', '合肥蜀山区淠河路', '1972-11-17 11:11:11', '103', '603', '503');
INSERT INTO `coach` VALUES ('707', '郑小思', 'alkfgk', '男', '13657767348', '合肥蜀山区潜山路', '1973-11-18 11:11:11', '103', '604', '504');
INSERT INTO `coach` VALUES ('708', '王小鑫', 'abufgk', '男', '13658864448', '合肥蜀山区望江路', '1975-11-19 11:11:11', '101', '604', '504');
INSERT INTO `coach` VALUES ('709', '冯小亮', 'aijfgk', '女', '13659965548', '合肥经开区宿松路', '1988-12-12 11:11:11', '102', '605', '503');
INSERT INTO `coach` VALUES ('710', '陈小明', 'aqefgk', '女', '13656266648', '合肥经开区紫云路', '1986-10-11 11:11:11', '104', '605', '503');
INSERT INTO `coach` VALUES ('712', '娃哈哈', '556644', '男', '13823344554', '工厂', null, '101', '601', '501');
INSERT INTO `coach` VALUES ('713', '娃哈哈', '556644', '男', '13823344554', '工厂', null, '101', '601', '501');

-- ----------------------------
-- Table structure for grade
-- ----------------------------
DROP TABLE IF EXISTS `grade`;
CREATE TABLE `grade` (
  `gradeId` int(6) NOT NULL AUTO_INCREMENT COMMENT '班级序号',
  `gradeName` varchar(40) NOT NULL COMMENT '班级名称',
  `typeId` int(6) NOT NULL,
  `gradeSize` int(3) DEFAULT NULL COMMENT '班级人数',
  `openDate` datetime DEFAULT NULL COMMENT '开班日期',
  PRIMARY KEY (`gradeId`),
  KEY `fk_grade_typeId` (`typeId`),
  CONSTRAINT `fk_grade_typeId` FOREIGN KEY (`typeId`) REFERENCES `type` (`typeId`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=214 DEFAULT CHARSET=utf8;

-- ----------------------------
-- Records of grade
-- ----------------------------
INSERT INTO `grade` VALUES ('201', '201班', '301', '10', '2018-02-25 00:00:00');
INSERT INTO `grade` VALUES ('202', '30班', '303', '3', '2018-02-24 12:12:12');
INSERT INTO `grade` VALUES ('203', '203班', '303', '10', '2018-04-21 00:00:00');
INSERT INTO `grade` VALUES ('204', '204班', '301', '10', '2018-05-21 00:00:00');
INSERT INTO `grade` VALUES ('205', '205班', '302', '10', '2018-06-21 00:00:00');
INSERT INTO `grade` VALUES ('206', '206班', '302', '10', '2018-07-21 00:00:00');
INSERT INTO `grade` VALUES ('207', '207班', '303', '10', '2018-08-21 00:00:00');
INSERT INTO `grade` VALUES ('208', '208班', '301', '10', '2018-09-21 00:00:00');
INSERT INTO `grade` VALUES ('209', '209班', '302', '10', '2018-10-21 00:00:00');
INSERT INTO `grade` VALUES ('210', '210班', '303', '10', '2018-11-21 00:00:00');
INSERT INTO `grade` VALUES ('211', '30班', '301', '10', '3918-04-26 22:20:20');
INSERT INTO `grade` VALUES ('212', '30班', '301', '10', '3918-04-26 22:20:20');
INSERT INTO `grade` VALUES ('213', '30班', '303', '3', '2018-02-24 12:12:12');

-- ----------------------------
-- Table structure for licensetype
-- ----------------------------
DROP TABLE IF EXISTS `licensetype`;
CREATE TABLE `licensetype` (
  `licenseTypeId` int(6) NOT NULL AUTO_INCREMENT COMMENT '驾照类型序号',
  `licenseTypeName` varchar(40) NOT NULL COMMENT '驾照类型名称',
  `price` decimal(7,2) NOT NULL COMMENT '学费',
  PRIMARY KEY (`licenseTypeId`)
) ENGINE=InnoDB AUTO_INCREMENT=511 DEFAULT CHARSET=utf8;

-- ----------------------------
-- Records of licensetype
-- ----------------------------
INSERT INTO `licensetype` VALUES ('501', 'C1', '3500.00');
INSERT INTO `licensetype` VALUES ('502', 'C2', '3000.00');
INSERT INTO `licensetype` VALUES ('503', 'C3', '3000.00');
INSERT INTO `licensetype` VALUES ('504', 'C4', '2800.00');
INSERT INTO `licensetype` VALUES ('505', 'B1', '6000.00');
INSERT INTO `licensetype` VALUES ('506', 'B2', '5500.00');
INSERT INTO `licensetype` VALUES ('507', 'A1', '12000.00');
INSERT INTO `licensetype` VALUES ('508', 'A2', '10000.00');
INSERT INTO `licensetype` VALUES ('510', 'c1', '2999.00');

-- ----------------------------
-- Table structure for questions
-- ----------------------------
DROP TABLE IF EXISTS `questions`;
CREATE TABLE `questions` (
  `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '序号',
  `Number` int(8) DEFAULT NULL COMMENT '题目序号',
  `Type` int(1) DEFAULT NULL COMMENT '题目类型0:单选1:判断;2:多选',
  `state` int(1) DEFAULT NULL COMMENT '科目状态0:科目一;1:科目四;2:科目一与科目四隐藏',
  `Stem` varchar(255) DEFAULT NULL COMMENT '练习题目的内容',
  `StemImg` varchar(255) DEFAULT NULL COMMENT '练习题目中图片路径',
  `OptionA` varchar(255) DEFAULT NULL COMMENT '练习题目选项A',
  `OptionB` varchar(255) DEFAULT NULL COMMENT '练习题目选项B',
  `OptionC` varchar(255) DEFAULT NULL COMMENT '练习题目选项C',
  `OptionD` varchar(255) DEFAULT NULL COMMENT '练习题目选项D',
  `ResultNumber` int(1) DEFAULT NULL COMMENT '题目答案数量',
  `daan` varchar(4) DEFAULT NULL COMMENT '答案选项',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8;

-- ----------------------------
-- Records of questions
-- ----------------------------
INSERT INTO `questions` VALUES ('1', '1', '0', '1', '驾驶证记载的驾驶人信息发生变化的要在多长时间内申请换证?', 'pic01', 'A、60日', 'B、50日', 'C、50日', 'D、30日', '1', 'D');
INSERT INTO `questions` VALUES ('2', '2', '0', '1', '申请人有下列哪种行为,三年内不得再次申领机动车驾驶证?', 'pic04', ' A、实习期记满12分,注销驾驶证的', 'B、申请人在考试过程中有舞弊行为的', 'C、申请人以欺骗、贿赂等不正当手段取得机动车驾驶证的', 'D、申请人未能在培训过程中认真练习的', '1', 'C');
INSERT INTO `questions` VALUES ('3', '3', '0', '1', '驾驶机动车行经市区下列哪种道路时不得超车?', 'pic05', ' A、主要街道', 'B、单向行驶路段', 'C、单向两条行车道', 'D、交通流量大的路段', '1', 'D');
INSERT INTO `questions` VALUES ('4', '4', '0', '1', '驾驶人在驾驶证有效期满前多长时间申请换证?', 'pic06', 'A、30日内', ' B、60日内', 'C、90日内', 'D、6个月内', '1', 'C');
INSERT INTO `questions` VALUES ('5', '5', '0', '1', '下雨后路面湿滑,车辆行驶中紧急制动时,容易导致什么?', 'pic07', ' A、引起发动机熄火', 'B、不被其他车辆驾驶人发现', ' C、因视线模糊而撞车', 'D、发生侧滑、引发交通事故', '1', 'D');

-- ----------------------------
-- Table structure for result
-- ----------------------------
DROP TABLE IF EXISTS `result`;
CREATE TABLE `result` (
  `resultId` int(6) NOT NULL AUTO_INCREMENT COMMENT '成绩序号',
  `studentId` int(6) NOT NULL COMMENT '学员序号',
  `subjectId` int(6) NOT NULL COMMENT '科目序号',
  `examDate` datetime NOT NULL COMMENT '考试日期',
  `studentResult` int(3) NOT NULL COMMENT '考试成绩',
  PRIMARY KEY (`resultId`),
  KEY `fk_result_studentId` (`studentId`),
  KEY `fk_result_subjectId` (`subjectId`),
  CONSTRAINT `fk_result_studentId` FOREIGN KEY (`studentId`) REFERENCES `student` (`studentId`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `fk_result_subjectId` FOREIGN KEY (`subjectId`) REFERENCES `subject` (`subjectId`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=911 DEFAULT CHARSET=utf8;

-- ----------------------------
-- Records of result
-- ----------------------------
INSERT INTO `result` VALUES ('904', '807', '604', '2018-03-15 00:00:00', '50');
INSERT INTO `result` VALUES ('905', '802', '605', '2018-03-14 00:00:00', '92');
INSERT INTO `result` VALUES ('907', '808', '603', '2018-03-18 00:00:00', '90');
INSERT INTO `result` VALUES ('908', '803', '604', '2018-03-26 00:00:00', '92');
INSERT INTO `result` VALUES ('910', '810', '601', '2018-03-16 00:00:00', '90');

-- ----------------------------
-- Table structure for student
-- ----------------------------
DROP TABLE IF EXISTS `student`;
CREATE TABLE `student` (
  `studentId` int(6) NOT NULL AUTO_INCREMENT COMMENT '学员序号',
  `stuName` varchar(40) NOT NULL COMMENT '学员名称',
  `stuPassWord` varchar(20) NOT NULL COMMENT '学员密码',
  `stuGender` varchar(4) NOT NULL COMMENT '学员性别',
  `stuPhone` varchar(50) NOT NULL COMMENT '学员电话',
  `stuAddress` varchar(255) NOT NULL COMMENT '学员地址',
  `stuBornDate` datetime DEFAULT NULL COMMENT '学员生日',
  `stuIdentityCard` varchar(18) NOT NULL COMMENT '学员身份证',
  `stuPicture` varchar(255) NOT NULL COMMENT '学员照片',
  `centerId` int(6) NOT NULL COMMENT '中心id',
  `coachId` int(6) NOT NULL COMMENT '教练类型',
  `gradeId` int(6) NOT NULL COMMENT '班级类型',
  `stuEnterTime` datetime NOT NULL COMMENT '报名时间',
  PRIMARY KEY (`studentId`),
  UNIQUE KEY `stuIdentityCard` (`stuIdentityCard`),
  KEY `fk_student_centerId` (`centerId`),
  KEY `fk_student_coachId` (`coachId`),
  KEY `fk_student_gradeId` (`gradeId`),
  CONSTRAINT `fk_student_centerId` FOREIGN KEY (`centerId`) REFERENCES `center` (`centerId`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `fk_student_coachId` FOREIGN KEY (`coachId`) REFERENCES `coach` (`coachId`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `fk_student_gradeId` FOREIGN KEY (`gradeId`) REFERENCES `grade` (`gradeId`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=811 DEFAULT CHARSET=utf8;

-- ----------------------------
-- Records of student
-- ----------------------------
INSERT INTO `student` VALUES ('801', '赵小敏', 'asldgk', '女', '13851563448', '合肥瑶海区明光路', '1998-11-23 11:11:11', '340848189206102213', 'pic01', '101', '701', '201', '2016-09-25 12:12:12');
INSERT INTO `student` VALUES ('802', '钱小雨', 'asdsgk', '男', '13852159748', '合肥瑶海区胜利路', '1996-11-15 11:11:11', '340848179306092313', 'pic01', '102', '702', '202', '2016-09-25 12:12:12');
INSERT INTO `student` VALUES ('803', '孙夏天', 'asddgk', '女', '13853262848', '合肥蜀山区清溪路', '1997-11-13 11:11:11', '340848169406082413', 'pic01', '102', '702', '203', '2016-09-25 12:12:12');
INSERT INTO `student` VALUES ('804', '李昆明', 'asdxgk', '男', '13854361948', '合肥蜀山区史河路', '1994-11-14 11:11:11', '340848159506072513', 'pic01', '102', '703', '202', '2016-09-25 12:12:12');
INSERT INTO `student` VALUES ('805', '周李杨', 'asdcgk', '女', '13855469148', '合肥蜀山区青阳路', '1992-11-16 11:11:11', '340848149606062613', 'pic01', '101', '703', '201', '2016-09-25 12:12:12');
INSERT INTO `student` VALUES ('806', '吴回库', 'asdvgk', '男', '13856668248', '合肥蜀山区淠河路', '1992-11-17 11:11:11', '340848139706052713', 'pic01', '103', '703', '203', '2016-09-25 12:12:12');
INSERT INTO `student` VALUES ('807', '郑清溪', 'asdbgk', '男', '13857767348', '合肥蜀山区潜山路', '1993-11-18 11:11:11', '340848129806042813', 'pic01', '103', '704', '204', '2016-09-25 12:12:12');
INSERT INTO `student` VALUES ('808', '王福昕', 'asdngk', '男', '13858864448', '合肥蜀山区望江路', '1995-11-19 11:11:11', '340848119906032913', 'pic01', '101', '704', '204', '2016-09-25 12:12:12');
INSERT INTO `student` VALUES ('809', '冯龙川', 'asdtgk', '女', '13859965548', '合肥经开区宿松路', '1998-12-12 11:11:11', '340848189006022113', 'pic01', '102', '705', '202', '2016-09-25 12:12:12');
INSERT INTO `student` VALUES ('810', '陈藏拙', 'asdhgk', '女', '13856266648', '合肥经开区紫云路', '1996-10-11 11:11:11', '340848199206012213', 'pic01', '104', '701', '203', '2016-09-25 12:12:12');

-- ----------------------------
-- Table structure for subject
-- ----------------------------
DROP TABLE IF EXISTS `subject`;
CREATE TABLE `subject` (
  `subjectId` int(6) NOT NULL AUTO_INCREMENT COMMENT '科目序号',
  `subjectName` varchar(40) NOT NULL COMMENT '科目名称',
  `classHour` int(5) NOT NULL COMMENT '课时',
  PRIMARY KEY (`subjectId`)
) ENGINE=InnoDB AUTO_INCREMENT=607 DEFAULT CHARSET=utf8;

-- ----------------------------
-- Records of subject
-- ----------------------------
INSERT INTO `subject` VALUES ('601', '科目1', '20');
INSERT INTO `subject` VALUES ('602', '科目2', '40');
INSERT INTO `subject` VALUES ('603', '科目3', '50');
INSERT INTO `subject` VALUES ('604', '科目4', '20');
INSERT INTO `subject` VALUES ('605', '科目6', '30');
INSERT INTO `subject` VALUES ('606', '漂移班', '30');

-- ----------------------------
-- Table structure for title
-- ----------------------------
DROP TABLE IF EXISTS `title`;
CREATE TABLE `title` (
  `titleId` int(8) NOT NULL AUTO_INCREMENT COMMENT '题库的主键id',
  `titleNumber` int(8) DEFAULT NULL COMMENT '题目序号',
  `titleType` int(1) DEFAULT NULL COMMENT '题目类型0:单选1:判断;2:多选',
  `titlestate` int(1) DEFAULT NULL COMMENT '科目状态0:科目一;1:科目四;2:科目一与科目四隐藏',
  `titleStem` varchar(255) DEFAULT NULL COMMENT '练习题目的内容',
  `titleStemImg` varchar(255) DEFAULT NULL COMMENT '练习题目中图片路径',
  `titleOptionA` varchar(255) DEFAULT NULL COMMENT '练习题目选项A',
  `titleOptionB` varchar(255) DEFAULT NULL COMMENT '练习题目选项B',
  `titleOptionC` varchar(255) DEFAULT NULL COMMENT '练习题目选项C',
  `titleOptionD` varchar(255) DEFAULT NULL COMMENT '练习题目选项D',
  `titleExplain` varchar(255) DEFAULT NULL COMMENT '题目的解释',
  `titleDifficult` int(1) DEFAULT NULL COMMENT '题目难度值1-5',
  `titleResultNumber` int(1) DEFAULT NULL COMMENT '题目答案数量',
  `daan` varchar(4) DEFAULT NULL COMMENT '答案选项',
  PRIMARY KEY (`titleId`)
) ENGINE=InnoDB AUTO_INCREMENT=21 DEFAULT CHARSET=utf8;

-- ----------------------------
-- Records of title
-- ----------------------------
INSERT INTO `title` VALUES ('1', '1', '0', '1', '驾驶证记载的驾驶人信息发生变化的要在多长时间内申请换证?', 'pic01', 'A、60日', 'B、50日', 'B、50日', 'D、30日', '要记住', '1', '1', 'D');
INSERT INTO `title` VALUES ('2', '2', '0', '1', '高速公路上行车,如果因疏忽驶过出口,应怎样做?', 'pic02', 'A、高速公路上行车,如果因疏忽驶过出口,应怎样做?', 'B、在原地掉头', 'C、在原地倒车驶回', 'D、继续向前行驶,寻找下一个出口', '要记住', '2', '1', 'D');
INSERT INTO `title` VALUES ('3', '3', '0', '1', '上道路行驶的机动车未悬挂机动车号牌的一次记几分?', 'pic03', ' A、2', 'B、3', 'C、6', 'D、12', '要记住', '2', '1', 'D');
INSERT INTO `title` VALUES ('4', '4', '0', '1', '申请人有下列哪种行为,三年内不得再次申领机动车驾驶证?', 'pic04', ' A、实习期记满12分,注销驾驶证的', 'B、申请人在考试过程中有舞弊行为的', 'C、申请人以欺骗、贿赂等不正当手段取得机动车驾驶证的', 'D、申请人未能在培训过程中认真练习的', '要记住', '3', '1', 'C');
INSERT INTO `title` VALUES ('5', '5', '0', '1', '驾驶机动车行经市区下列哪种道路时不得超车?', 'pic05', ' A、主要街道', 'B、单向行驶路段', 'C、单向两条行车道', 'D、交通流量大的路段', '要记住', '2', '1', 'D');
INSERT INTO `title` VALUES ('6', '6', '0', '1', '驾驶人在驾驶证有效期满前多长时间申请换证?', 'pic06', 'A、30日内', ' B、60日内', 'C、90日内', 'D、6个月内', '要记住', '3', '1', 'C');
INSERT INTO `title` VALUES ('7', '7', '0', '1', '下雨后路面湿滑,车辆行驶中紧急制动时,容易导致什么?', 'pic07', ' A、引起发动机熄火', 'B、不被其他车辆驾驶人发现', ' C、因视线模糊而撞车', 'D、发生侧滑、引发交通事故', '要记住', '3', '1', 'D');
INSERT INTO `title` VALUES ('8', '8', '0', '1', '持小型汽车驾驶证的驾驶人在下列哪种情况下需要接受审验??', 'pic08', ' A、有效期满换发驾驶证时', 'C、记分周期未满分', 'B、一个记分周期末', 'D、记分周期满12分', '要记住', '4', '1', 'A');
INSERT INTO `title` VALUES ('9', '9', '0', '1', '前轮胎爆裂已出现转向时,驾驶人不要过度矫正,应在控制住方向的情况下,应怎样做,使车辆缓慢减速?', 'pic09', ' A、采取紧急制动', 'B、使用驻车制动', 'C、轻踏制动踏板', 'D、迅速踏下制动踏板', '要记住', '4', '1', 'C');
INSERT INTO `title` VALUES ('10', '10', '0', '1', '驾驶车辆在交叉路口前变更车道时,应怎样驶入要变更的车道?', 'pic10', 'A、在路口前实线区内根据需要', 'B、进入路口实线区内', 'C、在虚线区按导向箭头指示', 'D、在路口停止线前', '要记住', '3', '1', 'C');
INSERT INTO `title` VALUES ('11', '11', '2', '2', '假如您的机动车雾天在道路中抛锚不能移动,你应该采取以下措施?', 'pic11', 'A、立即打开危险警报灯', 'B、在车后设置危险警告标志,警告来往车辆', 'C、要求车内所有人员立即下车远离事故车辆', 'D、立即拨打交通事故报警电话122请求援助', '要记住', '4', '4', 'ABCD');
INSERT INTO `title` VALUES ('12', '12', '0', '2', '如图所示,驾驶机动车跟车行驶遇到前车遮挡路口交通信号灯时,以下做法正确的是什么??', 'pic12', 'A、紧跟前车通过交叉口', 'B、减速做好停车准备', 'C、立即变更车道', 'D、立即停车', '要记住', '4', '1', 'B');
INSERT INTO `title` VALUES ('13', '13', '2', '2', '如图所示,驾驶机动车遇到这种情形,应如何安全通过?', 'pic13', 'A、减速慢行', 'B、注意观察', 'C、拉开横向安全距离', 'D、预防突然横穿的行人', '要记住', '5', '4', 'ABCD');
INSERT INTO `title` VALUES ('14', '14', '2', '2', '夜间驾驶机动车会车时,对方一直使用远光灯,以下做法正确的是什么?', 'pic14', 'A、不停变换远近光灯以及鸣喇叭提醒对方', 'B、视线适当右移,避免直视灯光', 'C、降低车速,靠右行驶', 'D、变换远光灯行驶', '要记住', '4', '2', 'BC');
INSERT INTO `title` VALUES ('15', '15', '2', '2', '驾驶机动车在山区上坡路段行驶,以下做法正确的是什么?', 'pic15', 'A、应尽量匀速前进', 'B、应尽量避免换挡', 'C、时刻注意下行车辆', 'D、应选择高速挡', '要记住', '5', '4', 'ABC');
INSERT INTO `title` VALUES ('16', '16', '0', '2', '如图所示,驾驶机动车在乡间道路上行驶,以下做法正确的是什么?', 'pic16', 'A、在成人和儿童之间快速通过', 'B、连续鸣喇叭提示后通过', 'B、连续鸣喇叭提示后通过', 'D、减速鸣喇叭提示,做好随时停车准备', '要记住', '4', '1', 'D');
INSERT INTO `title` VALUES ('17', '17', '0', '2', '驾驶人在超车时,前方车辆不减速、不让道,应怎样做?', 'pic17', 'A、连续鸣喇叭加速超越', 'B、加速继续超越', 'C、停止继续超车', 'D、紧跟其后,伺机再超', '要记住', '4', '1', 'C');
INSERT INTO `title` VALUES ('18', '18', '0', '2', '这辆小型汽车驾驶人错在哪里?', 'pic18', 'A、没有开启转向灯', 'B、没有鸣喇叭警示', 'C、未观察左后方情况', 'D、驾驶人没有错误', '要记住', '3', '1', 'C');
INSERT INTO `title` VALUES ('19', '19', '2', '2', '如图所示,驾驶机动车驶近公交车站时,驾驶人应注意的是什么?', 'pic19', 'A、下车的乘客可能从公交车前方横穿道路', 'B、公交车可能即将启动并向左变更车道', 'C、右侧摩托车可能驶入机动车道并穿插变更车道', 'D、对向车道内的机动车可能违法跨越道路中心线超车', '要记住', '5', '4', 'ABCD');
INSERT INTO `title` VALUES ('20', '20', '0', '2', '下坡路制动突然失效后,不可采用的办法是什么?', 'pic20', 'A、将机动车向上坡道方向行驶', 'B、用车身靠向路旁的岩石或树林碰擦', 'C、利用道路边专设的避险车道停车', 'D、拉紧驻车制动操纵杆或越二级挡位减挡', '要记住', '3', '1', 'D');

-- ----------------------------
-- Table structure for type
-- ----------------------------
DROP TABLE IF EXISTS `type`;
CREATE TABLE `type` (
  `typeId` int(6) NOT NULL AUTO_INCREMENT COMMENT '班级类型',
  `typeName` varchar(40) NOT NULL COMMENT '类型名字',
  PRIMARY KEY (`typeId`)
) ENGINE=InnoDB AUTO_INCREMENT=304 DEFAULT CHARSET=utf8;

-- ----------------------------
-- Records of type
-- ----------------------------
INSERT INTO `type` VALUES ('301', '超级班');
INSERT INTO `type` VALUES ('302', 'VIP班');
INSERT INTO `type` VALUES ('303', '商务班');

-- ----------------------------
-- Table structure for user
-- ----------------------------
DROP TABLE IF EXISTS `user`;
CREATE TABLE `user` (
  `userId` int(6) NOT NULL AUTO_INCREMENT COMMENT '用户序号',
  `userName` varchar(40) NOT NULL COMMENT '用户名称',
  `userPassWord` varchar(20) NOT NULL COMMENT '用户密码',
  `phone` varchar(50) NOT NULL COMMENT '用户电话',
  `address` varchar(255) NOT NULL COMMENT '用户地址',
  PRIMARY KEY (`userId`)
) ENGINE=InnoDB AUTO_INCREMENT=418 DEFAULT CHARSET=utf8;

-- ----------------------------
-- Records of user
-- ----------------------------
INSERT INTO `user` VALUES ('401', 'tom', '111111', '13062354251', '蜀山区');
INSERT INTO `user` VALUES ('402', '王小虎', '333333', '13658542541', '地址不详');
INSERT INTO `user` VALUES ('403', 'tom2', '123456', '13856624782', '庐阳区');
INSERT INTO `user` VALUES ('404', 'tom3', '123456', '13856624883', '庐阳区');
INSERT INTO `user` VALUES ('405', 'tom4', '123456', '13856624985', '庐阳区');
INSERT INTO `user` VALUES ('406', '王小丫', '123456', '13856624086', '庐阳区');
INSERT INTO `user` VALUES ('407', '王二小', '123456', '13856624179', '庐阳区');
INSERT INTO `user` VALUES ('408', 'tom7', '123456', '13856624269', '庐阳区');
INSERT INTO `user` VALUES ('409', 'tom8', '123456', '13856624399', '庐阳区');
INSERT INTO `user` VALUES ('413', 'tom', '222222', '13025465425', '地址不详');
INSERT INTO `user` VALUES ('414', 'tom', '222222', '13025465425', '地址不详');
INSERT INTO `user` VALUES ('415', 'tom', '222222', '13025465425', '地址不详');
INSERT INTO `user` VALUES ('416', 'tom12345', '222222', '13025465425', '地址不详');
INSERT INTO `user` VALUES ('417', 'tom2222', 'tom123', '13252415465', '');
SET FOREIGN_KEY_CHECKS=1;

你可能感兴趣的:(简单的小数据库设计)