数据库脚本文件

main
xuan 1 month ago
parent d2564f8df8
commit 10ba5fed31

@ -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;
Loading…
Cancel
Save