From 10ba5fed31a7251e97546bffb9ffaea189e23aa3 Mon Sep 17 00:00:00 2001 From: xuan <3142316616@qq.com> Date: Sat, 12 Oct 2024 17:30:00 +0800 Subject: [PATCH] =?UTF-8?q?=E6=95=B0=E6=8D=AE=E5=BA=93=E8=84=9A=E6=9C=AC?= =?UTF-8?q?=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- class_system.sql | 57 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 class_system.sql diff --git a/class_system.sql b/class_system.sql new file mode 100644 index 0000000..4a252fb --- /dev/null +++ b/class_system.sql @@ -0,0 +1,57 @@ +/* + Navicat Premium Data Transfer + + Source Server : localhost_3306 + Source Server Type : MySQL + Source Server Version : 50743 + Source Host : localhost:3306 + Source Schema : class_system + + Target Server Type : MySQL + Target Server Version : 50743 + File Encoding : 65001 + + Date: 12/10/2024 17:29:14 +*/ + +SET NAMES utf8mb4; +SET FOREIGN_KEY_CHECKS = 0; + +-- ---------------------------- +-- Table structure for curriculum +-- ---------------------------- +DROP TABLE IF EXISTS `curriculum`; +CREATE TABLE `curriculum` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `course_name` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL, + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB AUTO_INCREMENT = 5 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic; + +-- ---------------------------- +-- Records of curriculum +-- ---------------------------- +INSERT INTO `curriculum` VALUES (1, '操作系统'); +INSERT INTO `curriculum` VALUES (2, '离散数学'); +INSERT INTO `curriculum` VALUES (4, '高等数学'); + +-- ---------------------------- +-- Table structure for students_list +-- ---------------------------- +DROP TABLE IF EXISTS `students_list`; +CREATE TABLE `students_list` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `student_name` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL, + `marks` int(11) NOT NULL, + `absence_times` int(11) NOT NULL, + `attendance_times` int(11) NOT NULL, + `class_id` int(11) NOT NULL, + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB AUTO_INCREMENT = 3 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic; + +-- ---------------------------- +-- Records of students_list +-- ---------------------------- +INSERT INTO `students_list` VALUES (1, 'kk', 1, 1, 1, 2); +INSERT INTO `students_list` VALUES (2, 'xiao', 2, 3, 3, 2); + +SET FOREIGN_KEY_CHECKS = 1;