SET FOREIGN_KEY_CHECKS=0;-- ------------------------------ Table structure for class-- ----------------------------DROPTABLEIFEXISTS`class`;CREATETABLE`class`(`cid`int(11)NOTNULLAUTO_INCREMENT,`caption`varchar(32)NOTNULL,PRIMARYKEY(`cid`))ENGINE=InnoDBAUTO_INCREMENT=5DEFAULTCHARSET=utf8;-- ------------------------------ Records of class-- ----------------------------INSERTINTO`class`VALUES('1','1908班');INSERTINTO`class`VALUES('2','2004班');INSERTINTO`class`VALUES('3','2101班');INSERTINTO`class`VALUES('4','2109班');-- ------------------------------ Table structure for course-- ----------------------------DROPTABLEIFEXISTS`course`;CREATETABLE`course`(`cid`int(11)NOTNULLAUTO_INCREMENT,`cname`varchar(32)NOTNULL,`teacher_id`int(11)NOTNULL,PRIMARYKEY(`cid`),KEY`fk_course_teacher`(`teacher_id`),CONSTRAINT`fk_course_teacher`FOREIGNKEY(`teacher_id`)REFERENCES`teacher`(`tid`))ENGINE=InnoDBAUTO_INCREMENT=6DEFAULTCHARSET=utf8;-- ------------------------------ Records of course-- ----------------------------INSERTINTO`course`VALUES('1','c++','1');INSERTINTO`course`VALUES('2','golang','2');INSERTINTO`course`VALUES('3','rust','4');INSERTINTO`course`VALUES('4','java','2');INSERTINTO`course`VALUES('5','python','1');-- ------------------------------ Table structure for score-- ----------------------------DROPTABLEIFEXISTS`score`;CREATETABLE`score`(`sid`int(11)NOTNULLAUTO_INCREMENT,`student_id`int(11)NOTNULL,`course_id`int(11)NOTNULL,`num`int(11)NOTNULL,PRIMARYKEY(`sid`),KEY`fk_score_student`(`student_id`),KEY`fk_score_course`(`course_id`),CONSTRAINT`fk_score_course`FOREIGNKEY(`course_id`)REFERENCES`course`(`cid`),CONSTRAINT`fk_score_student`FOREIGNKEY(`student_id`)REFERENCES`student`(`sid`))ENGINE=InnoDBAUTO_INCREMENT=58DEFAULTCHARSET=utf8;-- ------------------------------ Records of score-- ----------------------------INSERTINTO`score`VALUES('1','1','1','10');INSERTINTO`score`VALUES('2','1','2','59');INSERTINTO`score`VALUES('3','4','5','100');INSERTINTO`score`VALUES('4','5','4','67');INSERTINTO`score`VALUES('5','2','2','66');INSERTINTO`score`VALUES('6','2','1','58');INSERTINTO`score`VALUES('8','2','3','68');INSERTINTO`score`VALUES('9','2','4','99');INSERTINTO`score`VALUES('10','3','1','77');INSERTINTO`score`VALUES('11','3','2','66');INSERTINTO`score`VALUES('12','3','3','87');INSERTINTO`score`VALUES('13','3','4','99');INSERTINTO`score`VALUES('14','4','1','79');INSERTINTO`score`VALUES('15','4','2','11');INSERTINTO`score`VALUES('16','4','3','67');INSERTINTO`score`VALUES('17','4','4','100');INSERTINTO`score`VALUES('18','5','1','79');INSERTINTO`score`VALUES('19','5','2','11');INSERTINTO`score`VALUES('20','5','3','67');INSERTINTO`score`VALUES('21','5','5','100');INSERTINTO`score`VALUES('22','6','1','9');INSERTINTO`score`VALUES('23','6','2','100');INSERTINTO`score`VALUES('24','6','3','67');INSERTINTO