1 Star 0 Fork 0

田志恒/Politics

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
yggl.sql 4.11 KB
一键复制 编辑 原始数据 按行查看 历史
田志恒 提交于 2021-06-22 06:15 . 考试-数据库表
/*
Navicat MySQL Data Transfer
Source Server : phonesy
Source Server Version : 50534
Source Host : localhost:3306
Source Database : yggl
Target Server Type : MYSQL
Target Server Version : 50534
File Encoding : 65001
Date: 2021-04-15 13:35:56
*/
SET FOREIGN_KEY_CHECKS=0;
-- ----------------------------
-- Table structure for `departments`
-- ----------------------------
DROP TABLE IF EXISTS `departments`;
CREATE TABLE `departments` (
`DepartmentID` char(3) NOT NULL,
`DepartmentName` char(20) NOT NULL,
`Note` text,
PRIMARY KEY (`DepartmentID`)
) ENGINE=MyISAM DEFAULT CHARSET=gbk;
-- ----------------------------
-- Records of departments
-- ----------------------------
INSERT INTO `departments` VALUES ('1', '财务部', null);
INSERT INTO `departments` VALUES ('2', '人力资源部', null);
INSERT INTO `departments` VALUES ('3', '经理办公室', null);
INSERT INTO `departments` VALUES ('4', '研发部', null);
INSERT INTO `departments` VALUES ('5', '市场部', null);
-- ----------------------------
-- Table structure for `employees`
-- ----------------------------
DROP TABLE IF EXISTS `employees`;
CREATE TABLE `employees` (
`EmployeeID` char(6) NOT NULL,
`Name` char(10) NOT NULL,
`Education` char(4) NOT NULL,
`Birthday` date NOT NULL,
`Sex` char(2) NOT NULL,
`WorkYear` tinyint(1) DEFAULT NULL,
`Address` varchar(20) DEFAULT NULL,
`PhoneNumber` char(12) DEFAULT NULL,
`DepartmentID` char(3) NOT NULL,
PRIMARY KEY (`EmployeeID`)
) ENGINE=MyISAM DEFAULT CHARSET=gbk;
-- ----------------------------
-- Records of employees
-- ----------------------------
INSERT INTO `employees` VALUES ('000001', '王林', '大专', '1966-01-23', '1', '8', '中山路32-1-508', '83355668', '2');
INSERT INTO `employees` VALUES ('010008', '伍容华', '本科', '1976-03-28', '1', '3', '北京东路100-2', '83321321', '1');
INSERT INTO `employees` VALUES ('020010', '王向容', '硕士', '1982-12-09', '1', '2', '四牌楼10-0-108', '83792361', '1');
INSERT INTO `employees` VALUES ('020018', '李丽', '大专', '1960-07-30', '0', '6', '中山东路102-2', '83413301', '1');
INSERT INTO `employees` VALUES ('102201', '刘明', '本科', '1972-10-18', '1', '3', '虎踞路100-2', '83606608', '5');
INSERT INTO `employees` VALUES ('102208', '朱俊', '硕士', '1965-09-28', '1', '2', '牌楼巷5-3-106', '84708817', '5');
INSERT INTO `employees` VALUES ('108991', '钟敏', '硕士', '1979-08-10', '0', '4', '中山路10-3-105', '83346722', '3');
INSERT INTO `employees` VALUES ('111006', '张石兵', '本科', '1974-10-01', '1', '1', '解放路34-1-203', '84563418', '5');
INSERT INTO `employees` VALUES ('210678', '林涛', '大专', '1977-04-02', '1', '2', '中山北路24-35', '83467336', '3');
INSERT INTO `employees` VALUES ('302566', '李玉珉', '本科', '1968-09-20', '1', '3', '热河路209-3', '58765991', '4');
INSERT INTO `employees` VALUES ('308759', '叶凡', '本科', '1978-11-18', '1', '2', '北京西路3-7-52', '83308901', '4');
INSERT INTO `employees` VALUES ('504209', '陈林琳', '大专', '1969-09-03', '0', '5', '汉中路120-4-12', '84468158', '4');
-- ----------------------------
-- Table structure for `salary`
-- ----------------------------
DROP TABLE IF EXISTS `salary`;
CREATE TABLE `salary` (
`EmployeeID` char(6) NOT NULL,
`InCome` float(8,0) NOT NULL,
`OutCome` float(5,0) NOT NULL,
PRIMARY KEY (`EmployeeID`)
) ENGINE=MyISAM DEFAULT CHARSET=gbk;
-- ----------------------------
-- Records of salary
-- ----------------------------
INSERT INTO `salary` VALUES ('000001', '2101', '123');
INSERT INTO `salary` VALUES ('010008', '1583', '88');
INSERT INTO `salary` VALUES ('102201', '2570', '186');
INSERT INTO `salary` VALUES ('111006', '1987', '80');
INSERT INTO `salary` VALUES ('504209', '2066', '108');
INSERT INTO `salary` VALUES ('302566', '2981', '210');
INSERT INTO `salary` VALUES ('108991', '3260', '282');
INSERT INTO `salary` VALUES ('020010', '2860', '198');
INSERT INTO `salary` VALUES ('020018', '2348', '180');
INSERT INTO `salary` VALUES ('308759', '2532', '199');
INSERT INTO `salary` VALUES ('210678', '2240', '121');
INSERT INTO `salary` VALUES ('102208', '1980', '100');
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/tzhiheng/politics.git
git@gitee.com:tzhiheng/politics.git
tzhiheng
politics
Politics
master

搜索帮助