⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 crebas.sql

📁 POWERBUILDER+SQLSERVER数据库应用系统开发与实力源码 进销存管理系统
💻 SQL
📖 第 1 页 / 共 2 页
字号:
   emp_nation           char(2)              null,
   emp_marrige          char(1)              null,
   emp_political        char(1)              null,
   emp_gschool          char(30)             null,
   emp_major            char(20)             null,
   constraint PK_EMPLOYEE primary key  (emp_Id)
)
go


/*==============================================================*/
/* Index: emp_sex_FK                                            */
/*==============================================================*/
create   index emp_sex_FK on Employee (
sex_code
)
go


/*==============================================================*/
/* Index: emp_dept_FK                                           */
/*==============================================================*/
create   index emp_dept_FK on Employee (
dept_Id
)
go


/*==============================================================*/
/* Index: emp_home_FK                                           */
/*==============================================================*/
create   index emp_home_FK on Employee (
home_code
)
go


/*==============================================================*/
/* Index: emp_title_FK                                          */
/*==============================================================*/
create   index emp_title_FK on Employee (
title_code
)
go


/*==============================================================*/
/* Index: Relationship_6_FK                                     */
/*==============================================================*/
create   index Relationship_6_FK on Employee (
status_code
)
go


/*==============================================================*/
/* Index: emp_exp_FK                                            */
/*==============================================================*/
create   index emp_exp_FK on Employee (
exp_id
)
go


/*==============================================================*/
/* Index: emp_rel_FK                                            */
/*==============================================================*/
create   index emp_rel_FK on Employee (
rel_id
)
go


/*==============================================================*/
/* Index: emp_skill_FK                                          */
/*==============================================================*/
create   index emp_skill_FK on Employee (
ski_id
)
go


/*==============================================================*/
/* Index: emp_tra_FK                                            */
/*==============================================================*/
create   index emp_tra_FK on Employee (
tra_id
)
go


/*==============================================================*/
/* Index: emp_evaluation_FK                                     */
/*==============================================================*/
create   index emp_evaluation_FK on Employee (
evl_id
)
go


/*==============================================================*/
/* Index: emp_ap_FK                                             */
/*==============================================================*/
create   index emp_ap_FK on Employee (
ap_id
)
go


/*==============================================================*/
/* Index: emp_trans_FK                                          */
/*==============================================================*/
create   index emp_trans_FK on Employee (
trans_id
)
go


/*==============================================================*/
/* Index: emp_poli_FK                                           */
/*==============================================================*/
create   index emp_poli_FK on Employee (
poli_code
)
go


/*==============================================================*/
/* Index: emp_dip_FK                                            */
/*==============================================================*/
create   index emp_dip_FK on Employee (
dip_code
)
go


/*==============================================================*/
/* Index: emp_lev_FK                                            */
/*==============================================================*/
create   index emp_lev_FK on Employee (
lev_code
)
go


/*==============================================================*/
/* Index: emp_nation_FK                                         */
/*==============================================================*/
create   index emp_nation_FK on Employee (
nation_code
)
go


/*==============================================================*/
/* Index: emp_marriage_FK                                       */
/*==============================================================*/
create   index emp_marriage_FK on Employee (
marriage_code
)
go


/*==============================================================*/
/* Table: PoliCode                                              */
/*==============================================================*/
create table PoliCode (
   poli_code            char(1)              not null,
   poli_desc            char(20)             null,
   constraint PK_POLICODE primary key  (poli_code)
)
go


/*==============================================================*/
/* Table: Skill                                                 */
/*==============================================================*/
create table Skill (
   ski_id               int                  not null,
   ski_empCode          char(10)             not null,
   ski_desc             char(50)             null,
   ski_level            char(2)              null,
   ski_comment          char(50)             null,
   constraint PK_SKILL primary key  (ski_id)
)
go


/*==============================================================*/
/* Table: awardpunish                                           */
/*==============================================================*/
create table awardpunish (
   ap_id                int                  not null,
   ap_empCode           char(10)             not null,
   ap_date              datetime             null,
   ap_type              char(2)              null,
   ap_byWhom            char(20)             null,
   AP_Comment           char(50)             null,
   constraint PK_AWARDPUNISH primary key  (ap_id)
)
go


/*==============================================================*/
/* Table: dip_code                                              */
/*==============================================================*/
create table dip_code (
   dip_code             char(2)              not null,
   dip_desc             char(10)             not null,
   constraint PK_DIP_CODE primary key  (dip_code)
)
go


/*==============================================================*/
/* Table: emp_relation                                          */
/*==============================================================*/
create table emp_relation (
   rel_id               int                  not null,
   poli_code            char(1)              null,
   rel_empCode          char(10)             not null,
   rel_CountPart        char(10)             null,
   rel_relation         char(10)             null,
   rel_Political        char(1)              null,
   rel_Unit             char(30)             null,
   rel_Title            char(10)             null,
   rel_Access           char(30)             null,
   constraint PK_EMP_RELATION primary key  (rel_id)
)
go


/*==============================================================*/
/* Index: rel_poli_FK                                           */
/*==============================================================*/
create   index rel_poli_FK on emp_relation (
poli_code
)
go


/*==============================================================*/
/* Table: evaluation                                            */
/*==============================================================*/
create table evaluation (
   evl_id               int                  not null,
   evl_empCode          char(10)             not null,
   evl_date             datetime             null,
   evl_startDate        datetime             null,
   evl_endDate          datetime             null,
   evl_item             char(20)             null,
   evl_result           char(20)             null,
   constraint PK_EVALUATION primary key  (evl_id)
)
go


/*==============================================================*/
/* Table: experience                                            */
/*==============================================================*/
create table experience (
   exp_id               int                  not null,
   exp_empCode          char(10)             not null,
   exp_Unit             char(30)             null,
   exp_startDate        datetime             null,
   exp_endDate          datetime             null,
   exp_desc             char(200)            null,
   exp_quitReason       char(20)             null,
   constraint PK_EXPERIENCE primary key  (exp_id)
)
go


/*==============================================================*/
/* Table: home_code                                             */
/*==============================================================*/
create table home_code (
   home_code            char(3)              not null,
   home_desc            char(10)             not null,
   constraint PK_HOME_CODE primary key  (home_code)
)
go


/*==============================================================*/
/* Table: level_code                                            */
/*==============================================================*/
create table level_code (
   lev_code             char(2)              not null,
   lev_desc             char(10)             not null,
   constraint PK_LEVEL_CODE primary key  (lev_code)
)
go


/*==============================================================*/
/* Table: marriage                                              */
/*==============================================================*/
create table marriage (
   marriage_code        char(1)              not null,
   marriage_desc        char(4)              not null,
   constraint PK_MARRIAGE primary key  (marriage_code)
)
go


/*==============================================================*/
/* Table: nation_code                                           */
/*==============================================================*/
create table nation_code (
   nation_code          char(2)              not null,
   nation_desc          char(16)             not null,
   constraint PK_NATION_CODE primary key  (nation_code)
)
go


/*==============================================================*/
/* Table: sex_code                                              */
/*==============================================================*/
create table sex_code (
   sex_code             char(1)              not null,
   sex_desc             char(2)              null,
   constraint PK_SEX_CODE primary key  (sex_code)
)
go


/*==============================================================*/
/* Table: status_code                                           */
/*==============================================================*/
create table status_code (
   status_code          char(1)              not null,
   status_desc          char(20)             not null,
   constraint PK_STATUS_CODE primary key  (status_code)
)
go


/*==============================================================*/
/* Table: tansition                                             */
/*==============================================================*/
create table tansition (
   trans_id             int                  not null,
   trans_empCode        char(10)             not null,
   trans_type           char(2)              not null,
   trans_date           datetime             null,
   trans_fromDept       char(10)             null,
   trans_toDept         char(10)             null,
   constraint PK_TANSITION primary key  (trans_id)
)
go


/*==============================================================*/
/* Table: title_code                                            */
/*==============================================================*/
create table title_code (
   title_code           char(3)              not null,
   title_desc           char(20)             not null,
   constraint PK_TITLE_CODE primary key  (title_code)
)
go


/*==============================================================*/
/* Table: training                                              */
/*==============================================================*/
create table training (
   tra_id               int                  not null,
   tra_empCode          char(10)             not null,
   tra_Classname        char(50)             null,
   tra_startDate        datetime             null,
   tra_endDate          datetime             null,
   tra_hours            int                  null,
   tra_result           char(10)             null,
   tra_fee              int                  null,
   tra_comment          char(50)             null,
   constraint PK_TRAINING primary key  (tra_id)
)
go


/*==============================================================*/
/* Table: transCode                                             */
/*==============================================================*/
create table transCode (
   trans_code           char(2)              not null,
   trans_id             int                  null,
   trans_desc           char(20)             null,
   constraint PK_TRANSCODE primary key  (trans_code)
)
go


/*==============================================================*/
/* Index: trans_type_FK                                         */
/*==============================================================*/
create   index trans_type_FK on transCode (
trans_id
)
go


⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -