/*
 Navicat Premium Dump SQL

 Source Server         : localhost_3307
 Source Server Type    : MySQL
 Source Server Version : 80031 (8.0.31)
 Source Host           : localhost:3307
 Source Schema         : rik02

 Target Server Type    : MySQL
 Target Server Version : 80031 (8.0.31)
 File Encoding         : 65001

 Date: 19/07/2024 09:04:06
*/

SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;

-- ----------------------------
-- Table structure for stu_cou
-- ----------------------------
DROP TABLE IF EXISTS `stu_cou`;
CREATE TABLE `stu_cou`  (
  `sc_id` int NOT NULL AUTO_INCREMENT COMMENT '学生id',
  `c_id` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '课程编号',
  `s_id` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '学生Id',
  PRIMARY KEY (`sc_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 15 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of stu_cou
-- ----------------------------
INSERT INTO `stu_cou` VALUES (1, '1', '2');
INSERT INTO `stu_cou` VALUES (2, '1', '3');
INSERT INTO `stu_cou` VALUES (3, '1', '4');
INSERT INTO `stu_cou` VALUES (4, '2', '4');
INSERT INTO `stu_cou` VALUES (5, '3', '4');
INSERT INTO `stu_cou` VALUES (6, '1', '6');
INSERT INTO `stu_cou` VALUES (7, '2', '6');
INSERT INTO `stu_cou` VALUES (8, '3', '6');
INSERT INTO `stu_cou` VALUES (9, '1', '7');
INSERT INTO `stu_cou` VALUES (10, '1', '8');
INSERT INTO `stu_cou` VALUES (11, '1', '9');
INSERT INTO `stu_cou` VALUES (12, '2', '7');
INSERT INTO `stu_cou` VALUES (13, '2', '9');
INSERT INTO `stu_cou` VALUES (14, '3', '10');

-- ----------------------------
-- Table structure for t_course
-- ----------------------------
DROP TABLE IF EXISTS `t_course`;
CREATE TABLE `t_course`  (
  `c_id` int NOT NULL AUTO_INCREMENT COMMENT '课程编号',
  `c_name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '课程名称',
  PRIMARY KEY (`c_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 4 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of t_course
-- ----------------------------
INSERT INTO `t_course` VALUES (1, '课程1');
INSERT INTO `t_course` VALUES (2, '课程2');
INSERT INTO `t_course` VALUES (3, '课程3');

-- ----------------------------
-- Table structure for t_student
-- ----------------------------
DROP TABLE IF EXISTS `t_student`;
CREATE TABLE `t_student`  (
  `s_id` int NOT NULL AUTO_INCREMENT COMMENT '学生id',
  `s_name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '学生姓名',
  `sex` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '性别',
  PRIMARY KEY (`s_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 12 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of t_student
-- ----------------------------
INSERT INTO `t_student` VALUES (1, '1', '男');
INSERT INTO `t_student` VALUES (2, '学生1', '男');
INSERT INTO `t_student` VALUES (3, '学生2', '男');
INSERT INTO `t_student` VALUES (4, '学生3', '女');
INSERT INTO `t_student` VALUES (5, '学生4', '女');
INSERT INTO `t_student` VALUES (6, '学生5', '男');
INSERT INTO `t_student` VALUES (7, '学生6', '男');
INSERT INTO `t_student` VALUES (8, '学生7', '女');
INSERT INTO `t_student` VALUES (9, '学生8', '女');
INSERT INTO `t_student` VALUES (10, '学生9', '女');
INSERT INTO `t_student` VALUES (11, '学生10', '男');

SET FOREIGN_KEY_CHECKS = 1;
