/*==============================================================*/ /* Index: Relationship_3_FK */
/*==============================================================*/ create index Relationship_3_FK on NianJi ( BJ_ID ASC );
alter table NianJi
add constraint FK_NIANJI_RELATIONS_BANJI foreign key (BJ_ID) references BanJi (BJ_ID) on update restrict on delete restrict;
(5)Table 成绩表
/*==============================================================*/ /* Table: ChengJi2 */
/*==============================================================*/ create table ChengJi2 (
S_ID numeric(4) not null, CJ_1 numeric(3) null, CJ_2 numeric(3) null, CJ_3 numeric(3) null, CJ_4 numeric(3) null, CJ_BL1 numeric(3) null, CJ_BL2 numeric(3) null, CJ_BL3 numeric(3) null, CJ_BL4 numeric(3) null, CJ_ZF numeric(3) null, CJ_BK numeric(3) null, constraint PK_CHENGJI2 primary key clustered (S_ID) );
/*==============================================================*/ /* Index: ChengJi_PK */
/*==============================================================*/ create unique clustered index ChengJi_PK on ChengJi2 ( S_ID ASC );
alter table ChengJi2
add constraint FK_CHENGJI2_CHENGJI_STU_INFO foreign key (S_ID)
百度搜索“77cn”或“免费范文网”即可找到本站免费阅读全部范文。收藏本站方便下次阅读,免费范文网,提供经典小说教育文库oracle SQL数据库实训报告(14)在线全文阅读。
相关推荐: