references Stu_Info (S_ID) on update restrict on delete restrict;
alter table ChengJi2
add constraint FK_CHENGJI2_CHENGJI2_CHENGJI foreign key () references KeCheng on update restrict on delete restrict;
(6)Table 班级表
/*==============================================================*/ /* Table: BanJi */
/*==============================================================*/ create table BanJi (
BJ_ID numeric(4) not null, NianJi_ID numeric(4) null, ZhuanYe_ID numeric(4) null, BJ_NianJi numeric(4) null, BJ_ZhuanYe numeric(4) null, BJ_Name char(25) null, BJ_FDY numeric(4) null, BJ_BiYe smallint null, constraint PK_BANJI primary key (BJ_ID) );
/*==============================================================*/ /* Index: BanJi_PK */
/*==============================================================*/ create unique index BanJi_PK on BanJi ( BJ_ID ASC );
/*==============================================================*/ /* Index: Relationship_2_FK */
/*==============================================================*/ create index Relationship_2_FK on BanJi ( ZhuanYe_ID ASC );
/*==============================================================*/ /* Index: Relationship_4_FK */
/*==============================================================*/
百度搜索“77cn”或“免费范文网”即可找到本站免费阅读全部范文。收藏本站方便下次阅读,免费范文网,提供经典小说教育文库oracle SQL数据库实训报告(15)在线全文阅读。
相关推荐: