1. 程式人生 > >oracle資料庫學習,參考學生就業資訊共享平臺(job_student_system)

oracle資料庫學習,參考學生就業資訊共享平臺(job_student_system)

學生就業資訊共享平臺登入註冊介面

學生就業資訊共享平臺mysql資料庫版本原始碼:

超級管理員表建立語句如下:


create table t_admin(
	id int primary key auto_increment comment '主鍵',
	username varchar(100) comment '超級管理員賬號',
	password varchar(100) comment '超級管理員密碼'
) comment '超級管理員';
insert into t_admin(username,password) values('admin','123456');

使用者表建立語句如下:


create table t_customer(
	id int primary key auto_increment comment '主鍵',
	username varchar(100) comment '賬號',
	password varchar(100) comment '密碼',
	name varchar(100) comment '姓名',
	phone varchar(100) comment '手機',
	sex varchar(100) comment '性別',
	age varchar(100) comment '年齡',
	address varchar(100) comment '家庭住址',
	idcard varchar(100) comment '身份證',
	insertDate datetime comment '入庫日期',
	headPic varchar(100) comment ''
) comment '使用者';

簡歷表建立語句如下:


create table t_jl(
	id int primary key auto_increment comment '主鍵',
	customerId int comment '使用者',
	jobId int comment '職位',
	v1 varchar(100) comment '姓名',
	v2 varchar(100) comment '電話',
	v3 varchar(100) comment '年齡',
	v4 varchar(100) comment '工作經驗',
	v5 varchar(100) comment '獲獎經歷',
	v6 varchar(100) comment '特長',
	v7 varchar(100) comment '自我評價',
	jianli varchar(100) comment '簡歷附件',
	insertDate datetime comment '投遞時間',
	status varchar(100) comment '狀態',
	remark varchar(100) comment '稽核描述',
	isms varchar(100) comment '面試邀約',
	msjg varchar(100) comment '面試結果',
	shr varchar(100) comment '稽核人',
	ztpj varchar(100) comment '總體評價'
) comment '簡歷';

工作崗位表建立語句如下:


create table t_job(
	id int primary key auto_increment comment '主鍵',
	jobName varchar(100) comment '職位名稱',
	v2 varchar(100) comment '招聘地點',
	v3 varchar(100) comment '工作型別',
	v4 varchar(100) comment '職位要求',
	v5 varchar(100) comment '薪資等級',
	v6 varchar(100) comment '福利待遇',
	v7 varchar(100) comment '日期'
) comment '工作崗位';

表建立語句如下:


create table t_xw(
	id int primary key auto_increment comment '主鍵',
	xwName varchar(100) comment '新聞標題',
	xwPic varchar(100) comment '新聞圖片',
	xwContent varchar(100) comment '新聞內容',
	xwDate varchar(100) comment '新聞日期'
) comment '';

學生就業資訊共享平臺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_customer(
	id integer,
	username varchar(100),
	password varchar(100),
	name varchar(100),
	phone varchar(100),
	sex varchar(100),
	age varchar(100),
	address varchar(100),
	idcard varchar(100),
	insertDate datetime,
	headPic varchar(100)
);
--使用者欄位加註釋
comment on column t_customer.id is '主鍵';
comment on column t_customer.username is '賬號';
comment on column t_customer.password is '密碼';
comment on column t_customer.name is '姓名';
comment on column t_customer.phone is '手機';
comment on column t_customer.sex is '性別';
comment on column t_customer.age is '年齡';
comment on column t_customer.address is '家庭住址';
comment on column t_customer.idcard is '身份證';
comment on column t_customer.insertDate is '入庫日期';
comment on column t_customer.headPic is '';
--使用者表加註釋
comment on table t_customer is '使用者';

簡歷表建立語句如下:


create table t_jl(
	id integer,
	customerId int,
	jobId int,
	v1 varchar(100),
	v2 varchar(100),
	v3 varchar(100),
	v4 varchar(100),
	v5 varchar(100),
	v6 varchar(100),
	v7 varchar(100),
	jianli varchar(100),
	insertDate datetime,
	status varchar(100),
	remark varchar(100),
	isms varchar(100),
	msjg varchar(100),
	shr varchar(100),
	ztpj varchar(100)
);
--簡歷欄位加註釋
comment on column t_jl.id is '主鍵';
comment on column t_jl.customerId is '使用者';
comment on column t_jl.jobId is '職位';
comment on column t_jl.v1 is '姓名';
comment on column t_jl.v2 is '電話';
comment on column t_jl.v3 is '年齡';
comment on column t_jl.v4 is '工作經驗';
comment on column t_jl.v5 is '獲獎經歷';
comment on column t_jl.v6 is '特長';
comment on column t_jl.v7 is '自我評價';
comment on column t_jl.jianli is '簡歷附件';
comment on column t_jl.insertDate is '投遞時間';
comment on column t_jl.status is '狀態';
comment on column t_jl.remark is '稽核描述';
comment on column t_jl.isms is '面試邀約';
comment on column t_jl.msjg is '面試結果';
comment on column t_jl.shr is '稽核人';
comment on column t_jl.ztpj is '總體評價';
--簡歷表加註釋
comment on table t_jl is '簡歷';

工作崗位表建立語句如下:


create table t_job(
	id integer,
	jobName varchar(100),
	v2 varchar(100),
	v3 varchar(100),
	v4 varchar(100),
	v5 varchar(100),
	v6 varchar(100),
	v7 varchar(100)
);
--工作崗位欄位加註釋
comment on column t_job.id is '主鍵';
comment on column t_job.jobName is '職位名稱';
comment on column t_job.v2 is '招聘地點';
comment on column t_job.v3 is '工作型別';
comment on column t_job.v4 is '職位要求';
comment on column t_job.v5 is '薪資等級';
comment on column t_job.v6 is '福利待遇';
comment on column t_job.v7 is '日期';
--工作崗位表加註釋
comment on table t_job is '工作崗位';

表建立語句如下:


create table t_xw(
	id integer,
	xwName varchar(100),
	xwPic varchar(100),
	xwContent varchar(100),
	xwDate varchar(100)
);
--欄位加註釋
comment on column t_xw.id is '主鍵';
comment on column t_xw.xwName is '新聞標題';
comment on column t_xw.xwPic is '新聞圖片';
comment on column t_xw.xwContent is '新聞內容';
comment on column t_xw.xwDate is '新聞日期';
--表加註釋
comment on table t_xw is '';

oracle特有,對應序列如下:


create sequence s_t_customer;
create sequence s_t_jl;
create sequence s_t_job;
create sequence s_t_xw;

學生就業資訊共享平臺sqlserver資料庫版本原始碼:

超級管理員表建立語句如下:


--超級管理員
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_customer(
	id int identity(1,1) primary key not null,--主鍵
	username varchar(100),--賬號
	password varchar(100),--密碼
	name varchar(100),--姓名
	phone varchar(100),--手機
	sex varchar(100),--性別
	age varchar(100),--年齡
	address varchar(100),--家庭住址
	idcard varchar(100),--身份證
	insertDate datetime,--入庫日期
	headPic varchar(100)--
);

簡歷表建立語句如下:


--簡歷表註釋
create table t_jl(
	id int identity(1,1) primary key not null,--主鍵
	customerId int,--使用者
	jobId int,--職位
	v1 varchar(100),--姓名
	v2 varchar(100),--電話
	v3 varchar(100),--年齡
	v4 varchar(100),--工作經驗
	v5 varchar(100),--獲獎經歷
	v6 varchar(100),--特長
	v7 varchar(100),--自我評價
	jianli varchar(100),--簡歷附件
	insertDate datetime,--投遞時間
	status varchar(100),--狀態
	remark varchar(100),--稽核描述
	isms varchar(100),--面試邀約
	msjg varchar(100),--面試結果
	shr varchar(100),--稽核人
	ztpj varchar(100)--總體評價
);

工作崗位表建立語句如下:


--工作崗位表註釋
create table t_job(
	id int identity(1,1) primary key not null,--主鍵
	jobName varchar(100),--職位名稱
	v2 varchar(100),--招聘地點
	v3 varchar(100),--工作型別
	v4 varchar(100),--職位要求
	v5 varchar(100),--薪資等級
	v6 varchar(100),--福利待遇
	v7 varchar(100)--日期
);

表建立語句如下:


--表註釋
create table t_xw(
	id int identity(1,1) primary key not null,--主鍵
	xwName varchar(100),--新聞標題
	xwPic varchar(100),--新聞圖片
	xwContent varchar(100),--新聞內容
	xwDate varchar(100)--新聞日期
);
學生就業資訊共享平臺登入後主頁

學生就業資訊共享平臺spring+springMVC+hibernate框架物件(javaBean,pojo)設計:

使用者javaBean建立語句如下:


package project.model;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;
@Entity
//使用者
@Table(name = "t_customer")
public class Customer {
//主鍵
@Id
@Column(name = "id")
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//賬號
private String username;
//密碼
private String password;
//姓名
private String name;
//手機
private String phone;
//性別
private String sex;
//年齡
private String age;
//家庭住址
private String address;
//身份證
private String idcard;
//入庫日期
private Date insertDate;
//
private String headPic;
public String getUsername() {return username;}
public void setUsername(String username) {this.username = username;}
public String getPassword() {return password;}
public void setPassword(String password) {this.password = password;}
public String getName() {return name;}
public void setName(String name) {this.name = name;}
public String getPhone() {return phone;}
public void setPhone(String phone) {this.phone = phone;}
public String getSex() {return sex;}
public void setSex(String sex) {this.sex = sex;}
public String getAge() {return age;}
public void setAge(String age) {this.age = age;}
public String getAddress() {return address;}
public void setAddress(String address) {this.address = address;}
public String getIdcard() {return idcard;}
public void setIdcard(String idcard) {this.idcard = idcard;}
public Date getInsertDate() {return insertDate;}
public void setInsertDate(Date insertDate) {this.insertDate = insertDate;}
public String getHeadPic() {return headPic;}
public void setHeadPic(String headPic) {this.headPic = headPic;}
}

簡歷javaBean建立語句如下:


package project.model;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;
@Entity
//簡歷
@Table(name = "t_jl")
public class Jl {
//主鍵
@Id
@Column(name = "id")
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//使用者
private Integer customerId;
//職位
private Integer jobId;
//姓名
private String v1;
//電話
private String v2;
//年齡
private String v3;
//工作經驗
private String v4;
//獲獎經歷
private String v5;
//特長
private String v6;
//自我評價
private String v7;
//簡歷附件
private String jianli;
//投遞時間
private Date insertDate;
//狀態
private String status;
//稽核描述
private String remark;
//面試邀約
private String isms;
//面試結果
private String msjg;
//稽核人
private String shr;
//總體評價
private String ztpj;
public Integer getCustomerId() {return customerId;}
public void setCustomerId(Integer customerId) {this.customerId = customerId;}
public Integer getJobId() {return jobId;}
public void setJobId(Integer jobId) {this.jobId = jobId;}
public String getV1() {return v1;}
public void setV1(String v1) {this.v1 = v1;}
public String getV2() {return v2;}
public void setV2(String v2) {this.v2 = v2;}
public String getV3() {return v3;}
public void setV3(String v3) {this.v3 = v3;}
public String getV4() {return v4;}
public void setV4(String v4) {this.v4 = v4;}
public String getV5() {return v5;}
public void setV5(String v5) {this.v5 = v5;}
public String getV6() {return v6;}
public void setV6(String v6) {this.v6 = v6;}
public String getV7() {return v7;}
public void setV7(String v7) {this.v7 = v7;}
public String getJianli() {return jianli;}
public void setJianli(String jianli) {this.jianli = jianli;}
public Date getInsertDate() {return insertDate;}
public void setInsertDate(Date insertDate) {this.insertDate = insertDate;}
public String getStatus() {return status;}
public void setStatus(String status) {this.status = status;}
public String getRemark() {return remark;}
public void setRemark(String remark) {this.remark = remark;}
public String getIsms() {return isms;}
public void setIsms(String isms) {this.isms = isms;}
public String getMsjg() {return msjg;}
public void setMsjg(String msjg) {this.msjg = msjg;}
public String getShr() {return shr;}
public void setShr(String shr) {this.shr = shr;}
public String getZtpj() {return ztpj;}
public void setZtpj(String ztpj) {this.ztpj = ztpj;}
}

工作崗位javaBean建立語句如下:


package project.model;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;
@Entity
//工作崗位
@Table(name = "t_job")
public class Job {
//主鍵
@Id
@Column(name = "id")
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//職位名稱
private String jobName;
//招聘地點
private String v2;
//工作型別
private String v3;
//職位要求
private String v4;
//薪資等級
private String v5;
//福利待遇
private String v6;
//日期
private String v7;
public String getJobName() {return jobName;}
public void setJobName(String jobName) {this.jobName = jobName;}
public String getV2() {return v2;}
public void setV2(String v2) {this.v2 = v2;}
public String getV3() {return v3;}
public void setV3(String v3) {this.v3 = v3;}
public String getV4() {return v4;}
public void setV4(String v4) {this.v4 = v4;}
public String getV5() {return v5;}
public void setV5(String v5) {this.v5 = v5;}
public String getV6() {return v6;}
public void setV6(String v6) {this.v6 = v6;}
public String getV7() {return v7;}
public void setV7(String v7) {this.v7 = v7;}
}

javaBean建立語句如下:


package project.model;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;
@Entity
//
@Table(name = "t_xw")
public class Xw {
//主鍵
@Id
@Column(name = "id")
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//新聞標題
private String xwName;
//新聞圖片
private String xwPic;
//新聞內容
private String xwContent;
//新聞日期
private String xwDate;
public String getXwName() {return xwName;}
public void setXwName(String xwName) {this.xwName = xwName;}
public String getXwPic() {return xwPic;}
public void setXwPic(String xwPic) {this.xwPic = xwPic;}
public String getXwContent() {return xwContent;}
public void setXwContent(String xwContent) {this.xwContent = xwContent;}
public String getXwDate() {return xwDate;}
public void setXwDate(String xwDate) {this.xwDate = xwDate;}
}

學生就業資訊共享平臺spring+springMVC+mybatis框架物件(javaBean,pojo)設計:

使用者javaBean建立語句如下:


package project.model;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
//使用者
public class Customer  extends BaseBean{
//主鍵
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//賬號
private String username;
//密碼
private String password;
//姓名
private String name;
//手機
private String phone;
//性別
private String sex;
//年齡
private String age;
//家庭住址
private String address;
//身份證
private String idcard;
//入庫日期
private Date insertDate;
//
private String headPic;
public String getUsername() {return username;}
public void setUsername(String username) {this.username = username;}
public String getPassword() {return password;}
public void setPassword(String password) {this.password = password;}
public String getName() {return name;}
public void setName(String name) {this.name = name;}
public String getPhone() {return phone;}
public void setPhone(String phone) {this.phone = phone;}
public String getSex() {return sex;}
public void setSex(String sex) {this.sex = sex;}
public String getAge() {return age;}
public void setAge(String age) {this.age = age;}
public String getAddress() {return address;}
public void setAddress(String address) {this.address = address;}
public String getIdcard() {return idcard;}
public void setIdcard(String idcard) {this.idcard = idcard;}
public Date getInsertDate() {return insertDate;}
public void setInsertDate(Date insertDate) {this.insertDate = insertDate;}
public String getHeadPic() {return headPic;}
public void setHeadPic(String headPic) {this.headPic = headPic;}
}

簡歷javaBean建立語句如下:


package project.model;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
//簡歷
public class Jl  extends BaseBean{
//主鍵
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//使用者
private Integer customerId;
//職位
private Integer jobId;
//姓名
private String v1;
//電話
private String v2;
//年齡
private String v3;
//工作經驗
private String v4;
//獲獎經歷
private String v5;
//特長
private String v6;
//自我評價
private String v7;
//簡歷附件
private String jianli;
//投遞時間
private Date insertDate;
//狀態
private String status;
//稽核描述
private String remark;
//面試邀約
private String isms;
//面試結果
private String msjg;
//稽核人
private String shr;
//總體評價
private String ztpj;
public Integer getCustomerId() {return customerId;}
public void setCustomerId(Integer customerId) {this.customerId = customerId;}
public Integer getJobId() {return jobId;}
public void setJobId(Integer jobId) {this.jobId = jobId;}
public String getV1() {return v1;}
public void setV1(String v1) {this.v1 = v1;}
public String getV2() {return v2;}
public void setV2(String v2) {this.v2 = v2;}
public String getV3() {return v3;}
public void setV3(String v3) {this.v3 = v3;}
public String getV4() {return v4;}
public void setV4(String v4) {this.v4 = v4;}
public String getV5() {return v5;}
public void setV5(String v5) {this.v5 = v5;}
public String getV6() {return v6;}
public void setV6(String v6) {this.v6 = v6;}
public String getV7() {return v7;}
public void setV7(String v7) {this.v7 = v7;}
public String getJianli() {return jianli;}
public void setJianli(String jianli) {this.jianli = jianli;}
public Date getInsertDate() {return insertDate;}
public void setInsertDate(Date insertDate) {this.insertDate = insertDate;}
public String getStatus() {return status;}
public void setStatus(String status) {this.status = status;}
public String getRemark() {return remark;}
public void setRemark(String remark) {this.remark = remark;}
public String getIsms() {return isms;}
public void setIsms(String isms) {this.isms = isms;}
public String getMsjg() {return msjg;}
public void setMsjg(String msjg) {this.msjg = msjg;}
public String getShr() {return shr;}
public void setShr(String shr) {this.shr = shr;}
public String getZtpj() {return ztpj;}
public void setZtpj(String ztpj) {this.ztpj = ztpj;}
}

工作崗位javaBean建立語句如下:


package project.model;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
//工作崗位
public class Job  extends BaseBean{
//主鍵
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//職位名稱
private String jobName;
//招聘地點
private String v2;
//工作型別
private String v3;
//職位要求
private String v4;
//薪資等級
private String v5;
//福利待遇
private String v6;
//日期
private String v7;
public String getJobName() {return jobName;}
public void setJobName(String jobName) {this.jobName = jobName;}
public String getV2() {return v2;}
public void setV2(String v2) {this.v2 = v2;}
public String getV3() {return v3;}
public void setV3(String v3) {this.v3 = v3;}
public String getV4() {return v4;}
public void setV4(String v4) {this.v4 = v4;}
public String getV5() {return v5;}
public void setV5(String v5) {this.v5 = v5;}
public String getV6() {return v6;}
public void setV6(String v6) {this.v6 = v6;}
public String getV7() {return v7;}
public void setV7(String v7) {this.v7 = v7;}
}

javaBean建立語句如下:


package project.model;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
//
public class Xw  extends BaseBean{
//主鍵
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//新聞標題
private String xwName;
//新聞圖片
private String xwPic;
//新聞內容
private String xwContent;
//新聞日期
private String xwDate;
public String getXwName() {return xwName;}
public void setXwName(String xwName) {this.xwName = xwName;}
public String getXwPic() {return xwPic;}
public void setXwPic(String xwPic) {this.xwPic = xwPic;}
public String getXwContent() {return xwContent;}
public void setXwContent(String xwContent) {this.xwContent = xwContent;}
public String getXwDate() {return xwDate;}
public void setXwDate(String xwDate) {this.xwDate = xwDate;}
}