/*
 Navicat Premium Data Transfer

 Source Server         : 127.0.0.1
 Source Server Type    : MySQL
 Source Server Version : 80037
 Source Host           : 127.0.0.1:3306
 Source Schema         : rikao7_19

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

 Date: 19/07/2024 08:58:23
*/

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,
  `c_id` int NULL DEFAULT NULL,
  `s_id` int NULL DEFAULT NULL,
  PRIMARY KEY (`sc_id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci ROW_FORMAT = Dynamic;

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

-- ----------------------------
-- Table structure for t_course
-- ----------------------------
DROP TABLE IF EXISTS `t_course`;
CREATE TABLE `t_course`  (
  `c_id` int NOT NULL AUTO_INCREMENT,
  `c_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL,
  PRIMARY KEY (`c_id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_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, '英语');

-- ----------------------------
-- Table structure for t_student
-- ----------------------------
DROP TABLE IF EXISTS `t_student`;
CREATE TABLE `t_student`  (
  `s_id` int NOT NULL AUTO_INCREMENT,
  `s_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL,
  `sex` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL,
  PRIMARY KEY (`s_id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_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;
