create table t_jxkh(
id int primary key auto_increment comment '主键',
employeeId int comment '员工',
code int comment '得分',
showDate datetime comment '日期',
remark varchar(100) comment '备注'
) comment '绩效考核';
考勤表创建语句如下:
create table t_kq(
id int primary key auto_increment comment '主键',
employeeId int comment '员工',
insertDate datetime comment '日期'
) comment '考勤';
薪酬福利表创建语句如下:
create table t_xcfl(
id int primary key auto_increment comment '主键',
employeeId int comment '员工',
xc int comment '薪酬',
showDate datetime comment '日期',
remark varchar(100) comment '备注'
) comment '薪酬福利';
应聘表创建语句如下:
create table t_yp(
id int primary key auto_increment comment '主键',
hrName varchar(100) comment '姓名',
sex varchar(100) comment '性别',
age varchar(100) comment '年龄',
phone varchar(100) comment '电话',
address varchar(100) comment '地址',
ypgw varchar(100) comment '应聘岗位'
) comment '应聘';
招聘表创建语句如下:
create table t_zp(
id int primary key auto_increment comment '主键',
title varchar(100) comment '招聘标题',
pic varchar(100) comment '图片',
content varchar(100) comment '内容'
) comment '招聘';
拓扑软件公司HR管理系统的设计与实现oracle数据库版本源码:
超级管理员表创建语句如下:
create table t_admin(
id integer,
username varchar(100),
password varchar(100)
);
insert into t_admin(id,username,password) values(1,'admin','123456');
--超级管理员字段加注释
comment on column t_admin.id is '主键';
comment on column t_admin.username is '超级管理员账号';
comment on column t_admin.password is '超级管理员密码';
--超级管理员表加注释
comment on table t_admin is '超级管理员';
部门表创建语句如下:
create table t_dept(
id integer,
deptName varchar(100)
);
--部门字段加注释
comment on column t_dept.id is '主键';
comment on column t_dept.deptName is '部门';
--部门表加注释
comment on table t_dept is '部门';
员工表创建语句如下:
create table t_employee(
id integer,
username varchar(100),
password varchar(100),
employeeName varchar(100),
deptId int,
sex varchar(100),
age varchar(100),
phone varchar(100),
address varchar(100),
rzsj datetime,
rzgw varchar(100)
);
--员工字段加注释
comment on column t_employee.id is '主键';
comment on column t_employee.username is '账号';
comment on column t_employee.password is '密码';
comment on column t_employee.employeeName is '姓名';
comment on column t_employee.deptId is '部门';
comment on column t_employee.sex is '性别';
comment on column t_employee.age is '年龄';
comment on column t_employee.phone is '电话';
comment on column t_employee.address is '地址';
comment on column t_employee.rzsj is '入职时间';
comment on column t_employee.rzgw is '入职岗位';
--员工表加注释
comment on table t_employee is '员工';
HR表创建语句如下:
create table t_hr(
id integer,
username varchar(100),
password varchar(100),
hrName varchar(100),
sex varchar(100),
age varchar(100),
phone varchar(100),
address varchar(100)
);
--HR字段加注释
comment on column t_hr.id is '主键';
comment on column t_hr.username is '账号';
comment on column t_hr.password is '密码';
comment on column t_hr.hrName is '姓名';
comment on column t_hr.sex is '性别';
comment on column t_hr.age is '年龄';
comment on column t_hr.phone is '电话';
comment on column t_hr.address is '地址';
--HR表加注释
comment on table t_hr is 'HR';
绩效考核表创建语句如下:
create table t_jxkh(
id integer,
employeeId int,
code int,
showDate datetime,
remark varchar(100)
);
--绩效考核字段加注释
comment on column t_jxkh.id is '主键';
comment on column t_jxkh.employeeId is '员工';
comment on column t_jxkh.code is '得分';
comment on column t_jxkh.showDate is '日期';
comment on column t_jxkh.remark is '备注';
--绩效考核表加注释
comment on table t_jxkh is '绩效考核';
考勤表创建语句如下:
create table t_kq(
id integer,
employeeId int,
insertDate datetime
);
--考勤字段加注释
comment on column t_kq.id is '主键';
comment on column t_kq.employeeId is '员工';
comment on column t_kq.insertDate is '日期';
--考勤表加注释
comment on table t_kq is '考勤';
薪酬福利表创建语句如下:
create table t_xcfl(
id integer,
employeeId int,
xc int,
showDate datetime,
remark varchar(100)
);
--薪酬福利字段加注释
comment on column t_xcfl.id is '主键';
comment on column t_xcfl.employeeId is '员工';
comment on column t_xcfl.xc is '薪酬';
comment on column t_xcfl.showDate is '日期';
comment on column t_xcfl.remark is '备注';
--薪酬福利表加注释
comment on table t_xcfl is '薪酬福利';
应聘表创建语句如下:
create table t_yp(
id integer,
hrName varchar(100),
sex varchar(100),
age varchar(100),
phone varchar(100),
address varchar(100),
ypgw varchar(100)
);
--应聘字段加注释
comment on column t_yp.id is '主键';
comment on column t_yp.hrName is '姓名';
comment on column t_yp.sex is '性别';
comment on column t_yp.age is '年龄';
comment on column t_yp.phone is '电话';
comment on column t_yp.address is '地址';
comment on column t_yp.ypgw is '应聘岗位';
--应聘表加注释
comment on table t_yp is '应聘';
招聘表创建语句如下:
create table t_zp(
id integer,
title varchar(100),
pic varchar(100),
content varchar(100)
);
--招聘字段加注释
comment on column t_zp.id is '主键';
comment on column t_zp.title is '招聘标题';
comment on column t_zp.pic is '图片';
comment on column t_zp.content is '内容';
--招聘表加注释
comment on table t_zp is '招聘';
--超级管理员
create table t_admin(
id int identity(1,1) primary key not null,--主键
username varchar(100),--超级管理员账号
password varchar(100)--超级管理员密码
);
insert into t_admin(username,password) values('admin','123456');
部门表创建语句如下:
--部门表注释
create table t_dept(
id int identity(1,1) primary key not null,--主键
deptName varchar(100)--部门
);
员工表创建语句如下:
--员工表注释
create table t_employee(
id int identity(1,1) primary key not null,--主键
username varchar(100),--账号
password varchar(100),--密码
employeeName varchar(100),--姓名
deptId int,--部门
sex varchar(100),--性别
age varchar(100),--年龄
phone varchar(100),--电话
address varchar(100),--地址
rzsj datetime,--入职时间
rzgw varchar(100)--入职岗位
);
HR表创建语句如下:
--HR表注释
create table t_hr(
id int identity(1,1) primary key not null,--主键
username varchar(100),--账号
password varchar(100),--密码
hrName varchar(100),--姓名
sex varchar(100),--性别
age varchar(100),--年龄
phone varchar(100),--电话
address varchar(100)--地址
);
绩效考核表创建语句如下:
--绩效考核表注释
create table t_jxkh(
id int identity(1,1) primary key not null,--主键
employeeId int,--员工
code int,--得分
showDate datetime,--日期
remark varchar(100)--备注
);
考勤表创建语句如下:
--考勤表注释
create table t_kq(
id int identity(1,1) primary key not null,--主键
employeeId int,--员工
insertDate datetime--日期
);
薪酬福利表创建语句如下:
--薪酬福利表注释
create table t_xcfl(
id int identity(1,1) primary key not null,--主键
employeeId int,--员工
xc int,--薪酬
showDate datetime,--日期
remark varchar(100)--备注
);
应聘表创建语句如下:
--应聘表注释
create table t_yp(
id int identity(1,1) primary key not null,--主键
hrName varchar(100),--姓名
sex varchar(100),--性别
age varchar(100),--年龄
phone varchar(100),--电话
address varchar(100),--地址
ypgw varchar(100)--应聘岗位
);
招聘表创建语句如下:
--招聘表注释
create table t_zp(
id int identity(1,1) primary key not null,--主键
title varchar(100),--招聘标题
pic varchar(100),--图片
content varchar(100)--内容
);