You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

82 lines
3.6 KiB

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

/*
Navicat MySQL Data Transfer
Source Server : mysql57
Source Server Type : MySQL
Source Server Version : 50709
Source Host : localhost:3306
Source Schema : db_studentms
Target Server Type : MySQL
Target Server Version : 50709
File Encoding : 65001
Date: 03/02/2023 00:46:44
*/
SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;
-- ----------------------------
-- Table structure for admin
-- ----------------------------
DROP TABLE IF EXISTS `admin`;
CREATE TABLE `admin` (
`a_id` int(11) NOT NULL AUTO_INCREMENT COMMENT '1.超级管理员 其他.班级管理员',
`a_username` varchar(10) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '' COMMENT '用户名',
`a_password` varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '' COMMENT '密码 长度6-18 (MD5加密)',
`a_mark` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '备注',
`a_classid` varchar(30) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '可管理班级id多个班级id可用,隔开',
PRIMARY KEY (`a_id`) USING BTREE
) ENGINE = MyISAM AUTO_INCREMENT = 17 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '管理员表' ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of admin
-- ----------------------------
INSERT INTO `admin` VALUES (1, 'admin', 'e10adc3949ba59abbe56e057f20f883e', '超级管理员', '0');
INSERT INTO `admin` VALUES (2, 'bhml', 'e10adc3949ba59abbe56e057f20f883e', '兵慌码乱', '1');
INSERT INTO `admin` VALUES (3, 'lyt', 'e10adc3949ba59abbe56e057f20f883e', '李有田', '2');
INSERT INTO `admin` VALUES (4, 'james', 'e10adc3949ba59abbe56e057f20f883e', '詹姆斯', '1,2');
-- ----------------------------
-- Table structure for class_
-- ----------------------------
DROP TABLE IF EXISTS `class_`;
CREATE TABLE `class_` (
`c_id` int(11) NOT NULL AUTO_INCREMENT,
`c_name` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '' COMMENT '班级名称',
PRIMARY KEY (`c_id`) USING BTREE
) ENGINE = MyISAM AUTO_INCREMENT = 16 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '班级表' ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of class_
-- ----------------------------
INSERT INTO `class_` VALUES (1, '软件工程1班');
INSERT INTO `class_` VALUES (2, '网络工程1班');
-- ----------------------------
-- Table structure for student
-- ----------------------------
DROP TABLE IF EXISTS `student`;
CREATE TABLE `student` (
`s_id` int(11) NOT NULL AUTO_INCREMENT,
`s_realname` varchar(5) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '' COMMENT '姓名',
`s_number` int(11) NULL DEFAULT NULL COMMENT '学号',
`s_sex` int(11) NOT NULL DEFAULT 0 COMMENT '性别 1.男2.女',
`s_class` int(11) NOT NULL DEFAULT 0 COMMENT '所属班级id',
`s_chinese` int(11) NOT NULL DEFAULT 0 COMMENT '语文成绩',
`s_math` int(11) NOT NULL DEFAULT 0 COMMENT '数学成绩',
`s_english` int(11) NOT NULL DEFAULT 0 COMMENT '外语成绩',
PRIMARY KEY (`s_id`) USING BTREE
) ENGINE = MyISAM AUTO_INCREMENT = 529 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '学生信息表' ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of student
-- ----------------------------
INSERT INTO `student` VALUES (4, 'kobe', 1004, 1, 2, 0, 0, 0);
INSERT INTO `student` VALUES (3, '高启兰', 1003, 2, 1, 0, 0, 0);
INSERT INTO `student` VALUES (2, '安欣', 1002, 1, 2, 0, 0, 0);
INSERT INTO `student` VALUES (1, '高启强', 1001, 1, 1, 99, 99, 60);
SET FOREIGN_KEY_CHECKS = 1;