/*
 Navicat Premium Data Transfer

 Source Server         : 110.41.47.6
 Source Server Type    : MySQL
 Source Server Version : 50734
 Source Host           : 110.41.47.6:3306
 Source Schema         : day_2

 Target Server Type    : MySQL
 Target Server Version : 50734
 File Encoding         : 65001

 Date: 19/07/2024 09:08:24
*/

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(11) NOT NULL AUTO_INCREMENT COMMENT '选课ID',
  `c_id` int(11) NULL DEFAULT NULL COMMENT '课程编号',
  `s_id` int(11) NULL DEFAULT NULL COMMENT '学生',
  PRIMARY KEY (`sc_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 13 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic;

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

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

-- ----------------------------
-- Records of t_course
-- ----------------------------
INSERT INTO `t_course` VALUES (1, '语文');
INSERT INTO `t_course` VALUES (2, '数学');
INSERT INTO `t_course` VALUES (3, '英语');
INSERT INTO `t_course` VALUES (4, '政治');

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

-- ----------------------------
-- Records of t_student
-- ----------------------------
INSERT INTO `t_student` VALUES (1, '张三', '男');
INSERT INTO `t_student` VALUES (2, '李四', '男');
INSERT INTO `t_student` VALUES (3, '张三', '女');
INSERT INTO `t_student` VALUES (4, '李四', '男');
INSERT INTO `t_student` VALUES (5, '张三', '男');
INSERT INTO `t_student` VALUES (6, '李四', '男');
INSERT INTO `t_student` VALUES (7, '张三', '男');
INSERT INTO `t_student` VALUES (8, '李四', '男');
INSERT INTO `t_student` VALUES (9, '王五', '女');
INSERT INTO `t_student` VALUES (10, '赵六', '男');

SET FOREIGN_KEY_CHECKS = 1;
