加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
mybatis.sql 3.90 KB
一键复制 编辑 原始数据 按行查看 历史
Cieu 提交于 2022-04-23 12:35 . 所需的数据库文件
/*
Navicat Premium Data Transfer
Source Server : Mysql
Source Server Type : MySQL
Source Server Version : 80028
Source Host : localhost:3306
Source Schema : mybatis
Target Server Type : MySQL
Target Server Version : 80028
File Encoding : 65001
Date: 23/04/2022 20:24:36
*/
SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;
-- ----------------------------
-- Table structure for t_dept
-- ----------------------------
DROP TABLE IF EXISTS `t_dept`;
CREATE TABLE `t_dept` (
`did` int NOT NULL AUTO_INCREMENT,
`dept_name` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL,
PRIMARY KEY (`did`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 3 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of t_dept
-- ----------------------------
INSERT INTO `t_dept` VALUES (1, 'A');
INSERT INTO `t_dept` VALUES (2, 'B');
INSERT INTO `t_dept` VALUES (3, 'C');
-- ----------------------------
-- Table structure for t_emp
-- ----------------------------
DROP TABLE IF EXISTS `t_emp`;
CREATE TABLE `t_emp` (
`eid` int NOT NULL AUTO_INCREMENT,
`emp_name` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL,
`age` int NULL DEFAULT NULL,
`sex` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL,
`email` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL,
`did` int NULL DEFAULT NULL,
PRIMARY KEY (`eid`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 16 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of t_emp
-- ----------------------------
INSERT INTO `t_emp` VALUES (1, '张三', 23, '男', '123@qq.com', 1);
INSERT INTO `t_emp` VALUES (2, '李四', 32, '女', '123@qq.com', 2);
INSERT INTO `t_emp` VALUES (3, '王五', 12, '男', '123@qq.com', 3);
INSERT INTO `t_emp` VALUES (4, '赵六', 34, '女', '123@qq.com', 1);
INSERT INTO `t_emp` VALUES (5, '田七', 28, '男', '123@qq.com', 2);
INSERT INTO `t_emp` VALUES (9, 'a1', 23, '男', '123@qq.com', NULL);
INSERT INTO `t_emp` VALUES (10, 'a2', 23, '男', '123@qq.com', NULL);
INSERT INTO `t_emp` VALUES (11, 'a3', 23, '男', '123@qq.com', NULL);
INSERT INTO `t_emp` VALUES (12, 'a1', 23, '男', '123@qq.com', NULL);
INSERT INTO `t_emp` VALUES (13, 'a2', 23, '男', '123@qq.com', NULL);
INSERT INTO `t_emp` VALUES (14, 'a3', 23, '男', '123@qq.com', NULL);
INSERT INTO `t_emp` VALUES (15, 'abc', 23, '男', '123@qq.com', NULL);
-- ----------------------------
-- Table structure for t_user
-- ----------------------------
DROP TABLE IF EXISTS `t_user`;
CREATE TABLE `t_user` (
`id` int NOT NULL AUTO_INCREMENT,
`username` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL,
`password` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL,
`age` int NULL DEFAULT NULL,
`sex` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL,
`email` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 11 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of t_user
-- ----------------------------
INSERT INTO `t_user` VALUES (4, '张三666', '123', 23, '女', '57787@qq.com');
INSERT INTO `t_user` VALUES (6, '张三', '123', 23, '女', '57787@qq.com');
INSERT INTO `t_user` VALUES (7, '张三', '123', 23, '女', '57787@qq.com');
INSERT INTO `t_user` VALUES (8, '李四', '123456', 23, '男', '李四@qq.com');
INSERT INTO `t_user` VALUES (9, '王五', '123456', 23, '男', '王五@qq.com');
INSERT INTO `t_user` VALUES (10, '王五', '123456', 23, '男', '王五@qq.com');
SET FOREIGN_KEY_CHECKS = 1;
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化