项目名称:网络课程平台(1)

  • 实现的功能:

(一)学生用户

  1. 课程作业
  2. 课程实验
  3. 课程考试

(二)教师用户:

  1. 课程的章节管理
  2. 课程的题库管理
  3. 教师管理
  4. 班级管理
  5. 学生管理
  6. 作业管理
  7. 实验管理
  8. 考试管理
  • ER图

  • 需要建立的表:

课程章节表:

chapter(chapterId,chapterName,questionCount)

课程题库表:

questionBank(questionId,questionContent,questionAnswer,type,difficulty,chapterId)

教师表:

teacher(teacherId,teacherNUM,teacherName,teacherPW)

班级表:

class(classId,className,classSize,teacherId)

学生表:

student(studentId,studentNUM,studentName,studentPW,classId)

作业规则表:

work_rule(work_ruleId,chapterId,type,difficulty,count)

实验规则表:

experiment_rule(experiment_ruleId,chapterId,type,difficulty,count)

试卷规则表:

exam_rule(experiment_ruleId,fromchapterId,tochapterId,type,difficulty,count)

课程作业总表:

work(workId,chapterId,studentId,fromTime,toTime,score)

课程作业明细表:

work_detail(work_detailId,workId,questionId,answer,grade)

课程实验总表:

experiment(experimentId,chapterId,studentId,fromTime,toTime,score)

课程实验明细表:

experiment_detail(experiment_detailId,experimentId,questionId,answer,grade)

课程试卷总表:

exam(examId,chapterId,studentId,fromTime,toTime,state,score)

课程试卷明细表:

exam_detail(exam_detailId,examId,questionId,answer,grade)

  • 建立索引:

教师表和学生表的姓名索引

题库表的试题内容、试题答案、题型、难度索引

班级表的班级名称索引

作业明细表的答案索引

课程试卷总表的答案索引

  • 建立视图:

班级学生视图(班级表和学生表)

教师学生视图(教师表和班级学生视图)

作业视图(作业总表和作业明细表)

实验视图(实验总表和实验明细表)

试卷视图(试卷总表和试卷明细表)

学生作业视图(学生表、章节表和作业表)

学生实验视图(学生表、章节表和实验表)

学生试卷视图(学生表和实验表)

教师作业视图(教师学生视图、章节表和作业表)

教师实验视图(教师学生视图、章节表和实验表)

教师试卷视图(教师学生视图和试卷表)

  • 插入记录

(一)插入章节表

  • MySQL概述
  • 数据类型
  • MySQL常用操作
  • MySQL查询
  • MySQL函数和存储过程
  • MySQL高级特性
  • 索引
  • 综合案例

(二)插入题库表

(三)插入教师表

帐号:1001

密码:1001

姓名:刘老师

(四)插入班级表

名称:软工2001-2003班

教师:刘老师

(五)插入学生表

(六)插入试卷规则表:

第一章 至 第一章 单选题 容易 6

第一章 至 第一章 填空题 容易 4

(七)插入作业规则表:

  • 单选题 容易 10

(八)备份数据库的结构和数据,导出SQL文件名为:net_sjk.sql

结果:

/*

SQLyog Ultimate v12.08 (64 bit)

MySQL - 8.0.30 : Database - 网络课程平台

*********************************************************************

*/

/*!40101 SET NAMES utf8 */;

/*!40101 SET SQL_MODE=''*/;

/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;

/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;

/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;

/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;

CREATE DATABASE /*!32312 IF NOT EXISTS*/`网络课程平台` /*!40100 DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci */ /*!80016 DEFAULT ENCRYPTION='N' */;

USE `网络课程平台`;

/*Table structure for table `chapter` */

DROP TABLE IF EXISTS `chapter`;

CREATE TABLE `chapter` (

`chapterId` varchar(10) NOT NULL,

`chapterName` varchar(10) DEFAULT NULL,

`questionCount` int DEFAULT NULL,

PRIMARY KEY (`chapterId`)

) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;

/*Data for the table `chapter` */

insert  into `chapter`(`chapterId`,`chapterName`,`questionCount`) values ('第一章','MySQL概述',NULL),('第七章','索引',NULL),('第三章','MySQL常用操作',NULL),('第二章','数据类型',NULL),('第八章','综合案例',NULL),('第六章','MySQL高级特性',NULL),('第四章','MySQL查询',NULL);

/*Table structure for table `class` */

DROP TABLE IF EXISTS `class`;

CREATE TABLE `class` (

`classId` int NOT NULL AUTO_INCREMENT,

`className` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL,

`classSize` int DEFAULT NULL,

`teacherId` int DEFAULT NULL,

PRIMARY KEY (`classId`),

UNIQUE KEY `className` (`className`)

) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;

/*Data for the table `class` */

insert  into `class`(`classId`,`className`,`classSize`,`teacherId`) values (1,'软工2101-2103班',NULL,1);

/*Table structure for table `exam` */

DROP TABLE IF EXISTS `exam`;

CREATE TABLE `exam` (

`examId` int NOT NULL AUTO_INCREMENT,

`chapterId` int DEFAULT NULL,

`studentId` int DEFAULT NULL,

`fromTime` date DEFAULT NULL,

`toTime` date DEFAULT NULL,

`state` varchar(10) DEFAULT NULL,

`score` double DEFAULT NULL,

PRIMARY KEY (`examId`)

) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;

/*Data for the table `exam` */

/*Table structure for table `exam_detail` */

DROP TABLE IF EXISTS `exam_detail`;

CREATE TABLE `exam_detail` (

`exam_detailId` int NOT NULL AUTO_INCREMENT,

`examId` int DEFAULT NULL,

`questionId` int DEFAULT NULL,

`answer` varchar(150) DEFAULT NULL,

`grade` double DEFAULT NULL,

PRIMARY KEY (`exam_detailId`),

UNIQUE KEY `answer` (`answer`)

) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;

/*Data for the table `exam_detail` */

/*Table structure for table `exam_rule` */

DROP TABLE IF EXISTS `exam_rule`;

CREATE TABLE `exam_rule` (

`exam_ruleId` int DEFAULT NULL,

`fromchapterId` varchar(10) DEFAULT NULL,

`tochapterId` varchar(10) DEFAULT NULL,

`type` varchar(10) DEFAULT NULL,

`difficulty` varchar(10) DEFAULT NULL,

`count` int DEFAULT NULL

) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;

/*Data for the table `exam_rule` */

insert  into `exam_rule`(`exam_ruleId`,`fromchapterId`,`tochapterId`,`type`,`difficulty`,`count`) values (NULL,'第一章','第一章','单选题','容易',6);

/*Table structure for table `experiment` */

DROP TABLE IF EXISTS `experiment`;

CREATE TABLE `experiment` (

`experimentId` int NOT NULL AUTO_INCREMENT,

`chapterId` int DEFAULT NULL,

`studentId` int DEFAULT NULL,

`fromTime` date DEFAULT NULL,

`toTime` date DEFAULT NULL,

`score` double DEFAULT NULL,

PRIMARY KEY (`experimentId`)

) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;

/*Data for the table `experiment` */

/*Table structure for table `experiment_detail` */

DROP TABLE IF EXISTS `experiment_detail`;

CREATE TABLE `experiment_detail` (

`experiment_detailId` int NOT NULL AUTO_INCREMENT,

`experimentId` int DEFAULT NULL,

`questionId` int DEFAULT NULL,

`answer` varchar(150) DEFAULT NULL,

`grade` double DEFAULT NULL,

PRIMARY KEY (`experiment_detailId`)

) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;

/*Data for the table `experiment_detail` */

/*Table structure for table `experiment_rule` */

DROP TABLE IF EXISTS `experiment_rule`;

CREATE TABLE `experiment_rule` (

`experiment_ruleId` int NOT NULL AUTO_INCREMENT,

`chapterId` int DEFAULT NULL,

`type` varchar(10) DEFAULT NULL,

`difficulty` int DEFAULT NULL,

`count` int DEFAULT NULL,

PRIMARY KEY (`experiment_ruleId`)

) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;

/*Data for the table `experiment_rule` */

/*Table structure for table `questionbank` */

DROP TABLE IF EXISTS `questionbank`;

CREATE TABLE `questionbank` (

`questionId` int NOT NULL AUTO_INCREMENT,

`questionContent` varchar(150) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL,

`questionAnswer` varchar(150) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL,

`type` varchar(10) DEFAULT NULL,

`difficulty` int DEFAULT NULL,

`chapterId` int DEFAULT NULL,

PRIMARY KEY (`questionId`),

UNIQUE KEY `questionContent` (`questionContent`,`questionAnswer`,`type`,`difficulty`)

) ENGINE=InnoDB AUTO_INCREMENT=26 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;

/*Data for the table `questionbank` */

insert  into `questionbank`(`questionId`,`questionContent`,`questionAnswer`,`type`,`difficulty`,`chapterId`) values (1,'\n______表示一个新的事务处理块的开始 \nA、 START TRANSACTION \nB、 BEGIN TRANSACTION \nC、 BEGIN COMMIT \nD、 START COMMIT ','A','1',1,1),(2,'______函数通常用来计算累计排名、移动平均数和报表聚合等。 \nA、 汇总 \nB、 分析 \nC、 分组 \nD、 单行 ','A','1',1,1),(3,'______是实体属性。 \nA、 形状 \nB、 汽车 \nC、 盘子 \nD、 高铁 ','A','1',1,1),(4,'______是一个单一的逻辑工作单元。 \nA、 记录 \nB、 数据库 \nC、 事务 \nD、 字段 ','C','1',1,1),(5,'______子句用于查询列的唯一值。 \nA、 unique \nB、 distinct \nC、 order by \nD、 group by ','B','1',1,1),(6,'MySql数据库中,下面______可以作为有效的列名。 \nA、 Column \nB、 123_NUM \nC、 NUM_#123 \nD、 #NUM123 ','C','1',1,1),(7,'MySql数据库中,以下______命令可以删除整个表中的数据,并且无法回滚。 \nA、 drop \nB、 delete \nC、 truncate \nD、 cascade ','C','1',1,1),(8,'MySQL中,预设的、拥有最高权限超级用户的用户名为______ \nA、 test \nB、 Administrator \nC、 DA \nD、 root ','D','1',1,1),(9,'MySQL组织数据采用______ \nA、 层次模型 \nB、 网状模型 \nC、 关系模型 \nD、 数据模型 ','C','1',1,1),(10,'SELECT语句的完整语法较复杂,但至少包括的部分是______ \nA、 仅SELECT \nB、 SELECT,FROM \nC、 SELECT,GROUP \nD、 SELECT,INTO ','B','1',1,1),(11,'SQL 查询中去除重复数据的是______ \nA、 ORDER BY \nB、 GROUP BY \nC、 DISTINCT \nD、 DESC ','C','1',1,1),(12,'SQL是一种______语言。 \nA、 函数型 \nB、 高级算法 \nC、 关系数据库 \nD、 人工智能 ','C','1',1,1),(13,'SQL语句中______命令可以授予用户对象权限。 \nA、 REVOKE \nB、 GRANT \nC、 DENY \nD、 CREATE ','B','1',1,1),(14,'SQL语句中的条件用以下哪一项来表达______ \nA、 THEN \nB、 WHILE \nC、 WHERE \nD、 IF ','C','1',1,1),(15,'SQL语言的数据操纵语句包括SELECT、INSERT、UPDATE、DELETE等。其中最重要的,也是使用最频繁的语句是______。 \nA、 UPDATE \nB、 SELECT \nC、 DELETE \nD、 INSERT ','B','1',1,1),(16,'SQL语言集数据查询、数据操纵、数据定义和数据控制功能于一体,其中,CREATE、DROP、ALTER语句是实现哪种功能______ \n答案:数据定义 \nB、 数据控制 \nC、 数据定义 \nD、 数据查询 ','C','1',1,1),(17,'数据操纵语言中典型的四种语句是Insert、select 、update和____。 ','delete','2',1,1),(18,'事务处理控制语言中的Commit命令表示提交事务,而回退事务则用____命令表示。','rollback','2',1,1),(19,'PL/SQL基本语句块中的声明部分使用____关键词。 ','declare','2',1,1),(20,'查询数据表的内容,需要用到的sql命令为:____.(字母小写) ','select','2',1,1),(21,'在MySQL中,可以使用____(要求小写)语句来修改、更新一个表或多个表中的数据。 ','update','2',1,1),(22,'SQL语言是______的语言,轻易学习 。 ','非过程化','2',1,1),(23,'SQL语言中,删除一个视图的命令是______ ','drop','2',1,1),(24,'UNIQUE惟一索引的作用是______','保证各行在该索引上的值都不得重复','2',1,1),(25,'ORDER BY NAME DESC是指按照姓名______ ','降序','2',1,1);

/*Table structure for table `student` */

DROP TABLE IF EXISTS `student`;

CREATE TABLE `student` (

`studentId` int NOT NULL AUTO_INCREMENT,

`studentNUM` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL,

`studentName` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL,

`studentPW` varchar(20) DEFAULT NULL,

`classId` int DEFAULT NULL,

PRIMARY KEY (`studentId`),

UNIQUE KEY `studentName` (`studentName`)

) ENGINE=InnoDB AUTO_INCREMENT=113 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;

/*Data for the table `student` */

insert  into `student`(`studentId`,`studentNUM`,`studentName`,`studentPW`,`classId`) values (1,'191451081007','李东晁','191451081007',1),(2,'211451080101','卜哲珩','211451080101',1),(3,'211451080102','曹幸蕊','211451080102',1),(4,'211451080103','常家乐','211451080103',1),(5,'211451080104','陈杰宇','211451080104',1),(6,'211451080105','陈俊坦','211451080105',1),(7,'211451080106','陈梦阳','211451080106',1),(8,'211451080107','海启阳','211451080107',1),(9,'211451080108','韩奇超','211451080108',1),(10,'211451080109','候占东','211451080109',1),(11,'211451080110','胡子涵','211451080110',1),(12,'211451080111','贾金其','211451080111',1),(13,'211451080112','蒋飞宇','211451080112',1),(14,'211451080113','李军伟','211451080113',1),(15,'211451080114','李欣梦','211451080114',1),(16,'211451080115','林富佳','211451080115',1),(17,'211451080116','吕尚儒','211451080116',1),(18,'211451080117','牛奔腾','211451080117',1),(19,'211451080118','潘鑫','211451080118',1),(20,'211451080119','孙相龙','211451080119',1),(21,'211451080120','王方旭','211451080120',1),(22,'211451080121','王思琦','211451080121',1),(23,'211451080122','吴妍','211451080122',1),(24,'211451080123','邢耿','211451080123',1),(25,'211451080124','杨继坤','211451080124',1),(26,'211451080125','杨晶','211451080125',1),(27,'211451080126','杨舟','211451080126',1),(28,'211451080127','尹先澳','211451080127',1),(29,'211451080128','余家驹','211451080128',1),(30,'211451080129','张傲','211451080129',1),(31,'211451080130','张鼎','211451080130',1),(32,'211451080131','张钧航','211451080131',1),(33,'211451080132','张世凡','211451080132',1),(34,'211451080133','张天宇','211451080133',1),(35,'211451080134','张益恺','211451080134',1),(36,'211451080135','赵超群','211451080135',1),(37,'211451080136','闫家乐','211451080136',1),(38,'211451080137','晏澜','211451080137',1),(39,'201451081735','赵秀宇','201451081735',1),(40,'211451080201','蔡炎培','211451080201',1),(41,'211451080202','曹旭','211451080202',1),(42,'211451080203','曹永祥','211451080203',1),(43,'211451080204','陈佰飞','211451080204',1),(44,'211451080205','陈志昂','211451080205',1),(45,'211451080206','翟世聪','211451080206',1),(46,'211451080207','丁超强','211451080207',1),(47,'211451080208','丁路明','211451080208',1),(48,'211451080209','董畅','211451080209',1),(49,'211451080210','董思宇','211451080210',1),(50,'211451080211','杜坤璞','211451080211',1),(51,'211451080212','冯逸轩','211451080212',1),(52,'211451080213','郭龙浩','211451080213',1),(53,'211451080214','郭强','211451080214',1),(54,'211451080215','黄思晴','211451080215',1),(55,'211451080216','康国灿','211451080216',1),(56,'211451080217','康贺威','211451080217',1),(57,'211451080218','李健豪','211451080218',1),(58,'211451080219','梁鑫洋','211451080219',1),(59,'211451080220','刘民杰','211451080220',1),(60,'211451080221','刘迅','211451080221',1),(61,'211451080222','马敬雅','211451080222',1),(62,'211451080223','马旭','211451080223',1),(63,'211451080224','苗世朵','211451080224',1),(64,'211451080225','欧晨西','211451080225',1),(65,'211451080226','屈靖川','211451080226',1),(66,'211451080227','盛和友','211451080227',1),(67,'211451080228','王建军','211451080228',1),(68,'211451080229','王慕康','211451080229',1),(69,'211451080230','王一帆','211451080230',1),(70,'211451080231','王振赏','211451080231',1),(71,'211451080232','杨标','211451080232',1),(72,'211451080233','杨钍燃','211451080233',1),(73,'211451080234','张鹏','211451080234',1),(74,'211451080235','张泽同','211451080235',1),(75,'211451080236','祝仕威','211451080236',1),(76,'211451080237','左明哲','211451080237',1),(77,'211451080301','常廷凯','211451080301',1),(78,'211451080302','陈成豪','211451080302',1),(79,'211451080303','高维祯','211451080303',1),(80,'211451080304','郭佳佳','211451080304',1),(81,'211451080305','姜莱','211451080305',1),(82,'211451080306','冷宗儒','211451080306',1),(83,'211451080307','李春雨','211451080307',1),(84,'211451080308','李荣翔','211451080308',1),(85,'211451080309','李世隆','211451080309',1),(86,'211451080310','李允','211451080310',1),(87,'211451080311','刘杨','211451080311',1),(88,'211451080312','吕建宇','211451080312',1),(89,'211451080313','罗晓','211451080313',1),(90,'211451080314','马奕豪','211451080314',1),(91,'211451080316','邱田润','211451080316',1),(92,'211451080317','史朝旭','211451080317',1),(93,'211451080318','孙嘉译','211451080318',1),(94,'211451080319','孙佳鑫','211451080319',1),(95,'211451080320','田宏志','211451080320',1),(96,'211451080321','王祥林','211451080321',1),(97,'211451080322','王宇静','211451080322',1),(98,'211451080323','杨博文','211451080323',1),(99,'211451080324','杨晨','211451080324',1),(100,'211451080325','张宝加','211451080325',1),(101,'211451080326','张建党','211451080326',1),(102,'211451080327','张凯茜','211451080327',1),(103,'211451080328','张文辉','211451080328',1),(104,'211451080329','张文硕','211451080329',1),(105,'211451080330','张新疆','211451080330',1),(106,'211451080331','张宇','211451080331',1),(107,'211451080332','张钰伟','211451080332',1),(108,'211451080333','张钰哲','211451080333',1),(109,'211451080334','赵乾凯','211451080334',1),(110,'211451080335','周斐驰','211451080335',1),(111,'211451080336','左雨露','211451080336',1),(112,'211451080337','闫丰','211451080337',1);

/*Table structure for table `teacher` */

DROP TABLE IF EXISTS `teacher`;

CREATE TABLE `teacher` (

`teacherId` int NOT NULL AUTO_INCREMENT,

`teacherNUM` int DEFAULT NULL,

`teacherName` varchar(10) DEFAULT NULL,

`teacherPW` varchar(20) DEFAULT NULL,

PRIMARY KEY (`teacherId`),

UNIQUE KEY `teacherName` (`teacherName`)

) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;

/*Data for the table `teacher` */

insert  into `teacher`(`teacherId`,`teacherNUM`,`teacherName`,`teacherPW`) values (1,1001,'刘老师','1001');

/*Table structure for table `work` */

DROP TABLE IF EXISTS `work`;

CREATE TABLE `work` (

`workId` int NOT NULL AUTO_INCREMENT,

`chapterId` int DEFAULT NULL,

`studentId` int DEFAULT NULL,

`fromTime` date DEFAULT NULL,

`toTime` date DEFAULT NULL,

`score` double DEFAULT NULL,

PRIMARY KEY (`workId`)

) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;

/*Data for the table `work` */

/*Table structure for table `work_detail` */

DROP TABLE IF EXISTS `work_detail`;

CREATE TABLE `work_detail` (

`work_detailId` int NOT NULL AUTO_INCREMENT,

`workId` int DEFAULT NULL,

`questionId` int DEFAULT NULL,

`answer` varchar(150) DEFAULT NULL,

`grade` double DEFAULT NULL,

PRIMARY KEY (`work_detailId`),

UNIQUE KEY `answer` (`answer`)

) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;

/*Data for the table `work_detail` */

/*Table structure for table `work_rule` */

DROP TABLE IF EXISTS `work_rule`;

CREATE TABLE `work_rule` (

`work_ruleId` int NOT NULL AUTO_INCREMENT,

`chapterId` varchar(10) DEFAULT NULL,

`type` varchar(10) DEFAULT NULL,

`difficulty` varchar(10) DEFAULT NULL,

`count` int DEFAULT NULL,

PRIMARY KEY (`work_ruleId`)

) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;

/*Data for the table `work_rule` */

insert  into `work_rule`(`work_ruleId`,`chapterId`,`type`,`difficulty`,`count`) values (1,'第一章','单选题','容易',10);

/*Table structure for table `classstudent` */

DROP TABLE IF EXISTS `classstudent`;

/*!50001 DROP VIEW IF EXISTS `classstudent` */;

/*!50001 DROP TABLE IF EXISTS `classstudent` */;

/*!50001 CREATE TABLE  `classstudent`(

`classId` int ,

`className` varchar(20) ,

`teacherId` int ,

`studentId` int ,

`studentName` varchar(20) ,

`studentNUM` varchar(20) ,

`studentPW` varchar(20)

)*/;

/*Table structure for table `examdetail` */

DROP TABLE IF EXISTS `examdetail`;

/*!50001 DROP VIEW IF EXISTS `examdetail` */;

/*!50001 DROP TABLE IF EXISTS `examdetail` */;

/*!50001 CREATE TABLE  `examdetail`(

`examId` int ,

`chapterId` int ,

`studentId` int ,

`fromTime` date ,

`toTime` date ,

`state` varchar(10) ,

`score` double ,

`exam_detailId` int ,

`questionId` int ,

`answer` varchar(150) ,

`grade` double

)*/;

/*Table structure for table `experimentdetail` */

DROP TABLE IF EXISTS `experimentdetail`;

/*!50001 DROP VIEW IF EXISTS `experimentdetail` */;

/*!50001 DROP TABLE IF EXISTS `experimentdetail` */;

/*!50001 CREATE TABLE  `experimentdetail`(

`experimentId` int ,

`chapterId` int ,

`studentId` int ,

`fromTime` date ,

`toTime` date ,

`score` double ,

`experiment_detailId` int ,

`questionId` int ,

`answer` varchar(150) ,

`grade` double

)*/;

/*Table structure for table `studentchapterexperiment` */

DROP TABLE IF EXISTS `studentchapterexperiment`;

/*!50001 DROP VIEW IF EXISTS `studentchapterexperiment` */;

/*!50001 DROP TABLE IF EXISTS `studentchapterexperiment` */;

/*!50001 CREATE TABLE  `studentchapterexperiment`(

`studentId` int ,

`studentName` varchar(20) ,

`chapterId` varchar(10) ,

`chapterName` varchar(10) ,

`experimentId` int ,

`score` double

)*/;

/*Table structure for table `studentchapterwork` */

DROP TABLE IF EXISTS `studentchapterwork`;

/*!50001 DROP VIEW IF EXISTS `studentchapterwork` */;

/*!50001 DROP TABLE IF EXISTS `studentchapterwork` */;

/*!50001 CREATE TABLE  `studentchapterwork`(

`studentId` int ,

`studentName` varchar(20) ,

`chapterId` varchar(10) ,

`chapterName` varchar(10) ,

`workId` int ,

`score` double

)*/;

/*Table structure for table `studentexperiment` */

DROP TABLE IF EXISTS `studentexperiment`;

/*!50001 DROP VIEW IF EXISTS `studentexperiment` */;

/*!50001 DROP TABLE IF EXISTS `studentexperiment` */;

/*!50001 CREATE TABLE  `studentexperiment`(

`studentId` int ,

`studentName` varchar(20) ,

`experimentId` int ,

`score` double ,

`fromTime` date ,

`toTime` date

)*/;

/*Table structure for table `teacherclassstudent` */

DROP TABLE IF EXISTS `teacherclassstudent`;

/*!50001 DROP VIEW IF EXISTS `teacherclassstudent` */;

/*!50001 DROP TABLE IF EXISTS `teacherclassstudent` */;

/*!50001 CREATE TABLE  `teacherclassstudent`(

`teacherId` int ,

`teacherName` varchar(10) ,

`classId` int ,

`className` varchar(20) ,

`studentName` varchar(20) ,

`studentId` int

)*/;

/*Table structure for table `teacherstudentchapterexperiment` */

DROP TABLE IF EXISTS `teacherstudentchapterexperiment`;

/*!50001 DROP VIEW IF EXISTS `teacherstudentchapterexperiment` */;

/*!50001 DROP TABLE IF EXISTS `teacherstudentchapterexperiment` */;

/*!50001 CREATE TABLE  `teacherstudentchapterexperiment`(

`experimentId` int ,

`chapterId` varchar(10) ,

`chapterName` varchar(10) ,

`teacherId` int ,

`teacherName` varchar(10)

)*/;

/*Table structure for table `teacherstudentchapterwork` */

DROP TABLE IF EXISTS `teacherstudentchapterwork`;

/*!50001 DROP VIEW IF EXISTS `teacherstudentchapterwork` */;

/*!50001 DROP TABLE IF EXISTS `teacherstudentchapterwork` */;

/*!50001 CREATE TABLE  `teacherstudentchapterwork`(

`workId` int ,

`fromTime` date ,

`toTime` date ,

`chapterId` varchar(10) ,

`chapterName` varchar(10) ,

`teacherId` int ,

`teacherName` varchar(10)

)*/;

/*Table structure for table `teacherstudentexam` */

DROP TABLE IF EXISTS `teacherstudentexam`;

/*!50001 DROP VIEW IF EXISTS `teacherstudentexam` */;

/*!50001 DROP TABLE IF EXISTS `teacherstudentexam` */;

/*!50001 CREATE TABLE  `teacherstudentexam`(

`teacherId` int ,

`teacherName` varchar(10) ,

`examId` int ,

`state` varchar(10)

)*/;

/*Table structure for table `workdetail` */

DROP TABLE IF EXISTS `workdetail`;

/*!50001 DROP VIEW IF EXISTS `workdetail` */;

/*!50001 DROP TABLE IF EXISTS `workdetail` */;

/*!50001 CREATE TABLE  `workdetail`(

`workId` int ,

`chapterId` int ,

`studentId` int ,

`fromTime` date ,

`toTime` date ,

`score` double ,

`work_detailId` int ,

`questionId` int ,

`answer` varchar(150) ,

`grade` double

)*/;

/*View structure for view classstudent */

/*!50001 DROP TABLE IF EXISTS `classstudent` */;

/*!50001 DROP VIEW IF EXISTS `classstudent` */;

/*!50001 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `classstudent` AS select `class`.`classId` AS `classId`,`class`.`className` AS `className`,`class`.`teacherId` AS `teacherId`,`student`.`studentId` AS `studentId`,`student`.`studentName` AS `studentName`,`student`.`studentNUM` AS `studentNUM`,`student`.`studentPW` AS `studentPW` from (`class` join `student`) where (`class`.`classId` = `student`.`classId`) */;

/*View structure for view examdetail */

/*!50001 DROP TABLE IF EXISTS `examdetail` */;

/*!50001 DROP VIEW IF EXISTS `examdetail` */;

/*!50001 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `examdetail` AS select `exam`.`examId` AS `examId`,`exam`.`chapterId` AS `chapterId`,`exam`.`studentId` AS `studentId`,`exam`.`fromTime` AS `fromTime`,`exam`.`toTime` AS `toTime`,`exam`.`state` AS `state`,`exam`.`score` AS `score`,`exam_detail`.`exam_detailId` AS `exam_detailId`,`exam_detail`.`questionId` AS `questionId`,`exam_detail`.`answer` AS `answer`,`exam_detail`.`grade` AS `grade` from (`exam` join `exam_detail`) where (`exam`.`examId` = `exam_detail`.`examId`) */;

/*View structure for view experimentdetail */

/*!50001 DROP TABLE IF EXISTS `experimentdetail` */;

/*!50001 DROP VIEW IF EXISTS `experimentdetail` */;

/*!50001 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `experimentdetail` AS select `experiment`.`experimentId` AS `experimentId`,`experiment`.`chapterId` AS `chapterId`,`experiment`.`studentId` AS `studentId`,`experiment`.`fromTime` AS `fromTime`,`experiment`.`toTime` AS `toTime`,`experiment`.`score` AS `score`,`experiment_detail`.`experiment_detailId` AS `experiment_detailId`,`experiment_detail`.`questionId` AS `questionId`,`experiment_detail`.`answer` AS `answer`,`experiment_detail`.`grade` AS `grade` from (`experiment` join `experiment_detail`) where (`experiment`.`experimentId` = `experiment_detail`.`experimentId`) */;

/*View structure for view studentchapterexperiment */

/*!50001 DROP TABLE IF EXISTS `studentchapterexperiment` */;

/*!50001 DROP VIEW IF EXISTS `studentchapterexperiment` */;

/*!50001 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `studentchapterexperiment` AS select `student`.`studentId` AS `studentId`,`student`.`studentName` AS `studentName`,`chapter`.`chapterId` AS `chapterId`,`chapter`.`chapterName` AS `chapterName`,`experiment`.`experimentId` AS `experimentId`,`experiment`.`score` AS `score` from ((`student` join `chapter`) join `experiment`) where ((`student`.`studentId` = `experiment`.`studentId`) and (`experiment`.`chapterId` = `chapter`.`chapterId`)) */;

/*View structure for view studentchapterwork */

/*!50001 DROP TABLE IF EXISTS `studentchapterwork` */;

/*!50001 DROP VIEW IF EXISTS `studentchapterwork` */;

/*!50001 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `studentchapterwork` AS select `student`.`studentId` AS `studentId`,`student`.`studentName` AS `studentName`,`chapter`.`chapterId` AS `chapterId`,`chapter`.`chapterName` AS `chapterName`,`work`.`workId` AS `workId`,`work`.`score` AS `score` from ((`chapter` join `student`) join `work`) where ((`student`.`studentId` = `work`.`studentId`) and (`work`.`chapterId` = `chapter`.`chapterId`)) */;

/*View structure for view studentexperiment */

/*!50001 DROP TABLE IF EXISTS `studentexperiment` */;

/*!50001 DROP VIEW IF EXISTS `studentexperiment` */;

/*!50001 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `studentexperiment` AS select `student`.`studentId` AS `studentId`,`student`.`studentName` AS `studentName`,`experiment`.`experimentId` AS `experimentId`,`experiment`.`score` AS `score`,`experiment`.`fromTime` AS `fromTime`,`experiment`.`toTime` AS `toTime` from (`student` join `experiment`) where (`student`.`studentId` = `experiment`.`studentId`) */;

/*View structure for view teacherclassstudent */

/*!50001 DROP TABLE IF EXISTS `teacherclassstudent` */;

/*!50001 DROP VIEW IF EXISTS `teacherclassstudent` */;

/*!50001 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `teacherclassstudent` AS select `teacher`.`teacherId` AS `teacherId`,`teacher`.`teacherName` AS `teacherName`,`classstudent`.`classId` AS `classId`,`classstudent`.`className` AS `className`,`classstudent`.`studentName` AS `studentName`,`classstudent`.`studentId` AS `studentId` from (`teacher` join `classstudent`) where (`teacher`.`teacherId` = `classstudent`.`teacherId`) */;

/*View structure for view teacherstudentchapterexperiment */

/*!50001 DROP TABLE IF EXISTS `teacherstudentchapterexperiment` */;

/*!50001 DROP VIEW IF EXISTS `teacherstudentchapterexperiment` */;

/*!50001 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `teacherstudentchapterexperiment` AS select `experiment`.`experimentId` AS `experimentId`,`chapter`.`chapterId` AS `chapterId`,`chapter`.`chapterName` AS `chapterName`,`teacherclassstudent`.`teacherId` AS `teacherId`,`teacherclassstudent`.`teacherName` AS `teacherName` from ((`chapter` join `teacherclassstudent`) join `experiment`) where ((`chapter`.`chapterId` = `experiment`.`chapterId`) and (`experiment`.`studentId` = `teacherclassstudent`.`studentId`)) */;

/*View structure for view teacherstudentchapterwork */

/*!50001 DROP TABLE IF EXISTS `teacherstudentchapterwork` */;

/*!50001 DROP VIEW IF EXISTS `teacherstudentchapterwork` */;

/*!50001 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `teacherstudentchapterwork` AS select `work`.`workId` AS `workId`,`work`.`fromTime` AS `fromTime`,`work`.`toTime` AS `toTime`,`chapter`.`chapterId` AS `chapterId`,`chapter`.`chapterName` AS `chapterName`,`teacherclassstudent`.`teacherId` AS `teacherId`,`teacherclassstudent`.`teacherName` AS `teacherName` from ((`chapter` join `teacherclassstudent`) join `work`) where ((`chapter`.`chapterId` = `work`.`chapterId`) and (`work`.`studentId` = `teacherclassstudent`.`studentId`)) */;

/*View structure for view teacherstudentexam */

/*!50001 DROP TABLE IF EXISTS `teacherstudentexam` */;

/*!50001 DROP VIEW IF EXISTS `teacherstudentexam` */;

/*!50001 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `teacherstudentexam` AS select `teacherclassstudent`.`teacherId` AS `teacherId`,`teacherclassstudent`.`teacherName` AS `teacherName`,`exam`.`examId` AS `examId`,`exam`.`state` AS `state` from (`teacherclassstudent` join `exam`) where (`exam`.`studentId` = `teacherclassstudent`.`studentId`) */;

/*View structure for view workdetail */

/*!50001 DROP TABLE IF EXISTS `workdetail` */;

/*!50001 DROP VIEW IF EXISTS `workdetail` */;

/*!50001 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `workdetail` AS select `work`.`workId` AS `workId`,`work`.`chapterId` AS `chapterId`,`work`.`studentId` AS `studentId`,`work`.`fromTime` AS `fromTime`,`work`.`toTime` AS `toTime`,`work`.`score` AS `score`,`work_detail`.`work_detailId` AS `work_detailId`,`work_detail`.`questionId` AS `questionId`,`work_detail`.`answer` AS `answer`,`work_detail`.`grade` AS `grade` from (`work` join `work_detail`) where (`work`.`workId` = `work_detail`.`workId`) */;

/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;

/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;

/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;

/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;

车宇景--网络课程平台--生成试卷相关推荐

  1. 车宇景--网络课程平台--存储过程

    网络课程平台(2) 一.编写存储过程1 (一)插入教师表 DELIMITER $$ USE `network_course`$$ DROP PROCEDURE IF EXISTS `insert_te ...

  2. ssm网络课程平台的设计与搭建

    摘要 网上用户在线学习的一种普遍表现形式是网络课程平台,它已逐步取代线下的模式.网上用户在线学习实现智能化管理的帮手需要有网络课程平台,这样能够提高管理员的管理效率,网络课程平台需要提供给用户查询的功 ...

  3. 基于Java(SpringBoot)+Vue+MySQL 实现(Web)的网络课程平台【100010329】

    基于 SpringBoot 的网络课程平台 1 绪论 1.1 引言 本科题研究并实现了一个面向网络学习的平台,为需要学习的人提供了一个学习的平台.任何人都课在本平台进行注册登录,学习观看视频. 本平台 ...

  4. 内存气球 linux,【官方推荐】Linux环境下安装EduSoho - 在线学习网络课程平台_课程内容平台_EduSoho官方教程 - 气球鱼学院...

    { "i18nChapterName": "章", "i18nUnitName": "节", "i18nLes ...

  5. springboot大学生网络教学平台的设计与实现毕业设计源码281819

    目  录 摘要 1 绪论 1.1研究背景及意义 1.2研究现状 1.3系统开发技术的特色 1.4论文结构与章节安排 2大学生网络教学平台系统分析 2.1 可行性分析 2.2 系统流程分析 2.2.1数 ...

  6. 大学生网络教学平台的设计与实现 毕业设计-附源码281819

    目  录 摘要 1 绪论 1.1研究背景及意义 1.2研究现状 1.3系统开发技术的特色 1.4论文结构与章节安排 2大学生网络教学平台系统分析 2.1 可行性分析 2.2 系统流程分析 2.2.1数 ...

  7. (附源码)python数字图像处理课程平台 毕业设计 242339

    Python数字图像处理课程平台的开发 摘 要 数字图像处理是一门新兴技术,随着计算机硬件的发展,数字图像的实时处理已经成为可能,由于数字图像处理的各种算法的出现,使得其处理速度越来越快,能更好的为人 ...

  8. (附源码)Python数字图像处理课程平台 毕业设计242339

    Python数字图像处理课程平台的开发 摘 要 数字图像处理是一门新兴技术,随着计算机硬件的发展,数字图像的实时处理已经成为可能,由于数字图像处理的各种算法的出现,使得其处理速度越来越快,能更好的为人 ...

  9. 2019网络购车平台易车的发展

    网购汽车,在国外是一件非常普通的事情,而在我国,却刚刚兴起.在2011年4月,中国汽车第一网络购车平台―全球鹰旗舰店入驻淘宝商城,并在北京隆重开业,揭开了国内汽车品牌与电子商务营销相结合的新篇章.像如 ...

最新文章

  1. Android SDK国内更新
  2. MiniDao普通项目集成方案
  3. C/C++版数据结构之链表三
  4. 【转】STO跨公司转储流程
  5. 数据科学基础_学习数据科学基础
  6. 用Semisynchronous Replication半同步,mk-table-checksum数据同步一致性检查,监控主从同步运行状态的脚本等方式加强SQL性能和数据审核...
  7. [bzoj] 2049 洞穴勘探 || LCT
  8. Unity网络:在局域网P2P网络中利用UDP广播实现保活/心跳
  9. Android 用户界面---拖放(Drag and Drop)(二)
  10. 调查:拉丁美洲25%的信用卡用户希望使用加密货币付款
  11. For the completeness of the story
  12. 解决ueditor中没法动态配置imageurlprefix的方法
  13. 方波信号小波去噪matlab,Matlab小波去噪
  14. 高斯消元法求逆矩阵 matlab,matlab中求逆矩阵的高斯消元法实现的代码
  15. 给加西亚的信——余世维——赢在执行
  16. C语言打印图形小妙招
  17. 7.5W10W无线充电解决方案原理图
  18. 持续集成:Jenkins Pipeline共享库定义和使用
  19. 下级对上级回复已阅知_下级对上级回复已阅知_工作中回复领导,绝不能用OK!除此之外,还有四条...
  20. 选择明文攻击和选择密文攻击

热门文章

  1. 人生就是不断突破自我的过程。
  2. 民意调查Django实现(三)
  3. jmockit教程_java unit test Mock框架jMockit示例教程 - Mock 构造方法,基于状态的Mock
  4. ABBYY Finereader 15安装教程
  5. 可重入锁和不可重入锁详解
  6. Kafka集群相关指令
  7. 【批量删除仓库】GitHub 如何使用Python调用接口批量删除GitHub仓库
  8. 工具篇——2、autojump
  9. 2022年,早教行业进入黄金增长期
  10. DAG - 数据结构 有向无环图