create index Relationship_4_FK on BanJi ( NianJi_ID ASC );
alter table BanJi
add constraint FK_BANJI_RELATIONS_ZHUANYE foreign key (ZhuanYe_ID) references ZhuanYe (ZhuanYe_ID) on update restrict on delete restrict;
alter table BanJi
add constraint FK_BANJI_RELATIONS_NIANJI foreign key (NianJi_ID) references NianJi (NianJi_ID) on update restrict on delete restrict;
(7)Table 职务表
/*==============================================================*/ /* Table: ZhiWu */
/*==============================================================*/ create table ZhiWu (
ZW_ID numeric(4) not null, ZW_Name char(20) null, ZW_XZ char(20) null, ZW_DJ char(20) null, constraint PK_ZHIWU primary key (ZW_ID) );
/*==============================================================*/ /* Index: 职务表_PK */ /*==============================================================*/ create unique index 职务表_PK on ZhiWu ( ZW_ID ASC );
(8)Table 表现表
/*==============================================================*/ /* Table: BiaoXian */
/*==============================================================*/ create table BiaoXian (