【正文】
null, 班級(jí)名稱 constraint PK_COURSEINFORMATIONFORM primary key nonclustered (Course_Id) 建立主鍵:課程編號(hào) ) Go 數(shù)據(jù)插入 課程 管理插入的相關(guān)信息: insert into values(1,39。) insert into values(4,4,2021065,39。) insert into values(2,2,2021063,39。,36) insert into values(11,9,39。,43) insert into values(9,7,39。,37) insert into values(7,5,39。,36) insert into values(5,3,39。,38) insert into values(3,2,39。,80,50) 查詢結(jié)果 select * from (四)班級(jí)管理 ( 11) /*==============================================================*/ /* Table: Classmangement 建立班級(jí)管理表 */ /*==============================================================*/ create table Classmangement ( class_id numeric(10) not null, 班級(jí)編號(hào) Depar_Id numeric(10) null, 系部編號(hào) class_name varchar(10) not null, 班級(jí)名稱 cls_num numeric(10) not null, 班級(jí)號(hào) constraint PK_CLASSMANGEMENT primary key nonclustered (class_id) 建立主鍵:班級(jí)編號(hào) ) Go 24 數(shù)據(jù)插入 班級(jí)管理插入的相關(guān)信息: insert into values(1,1,39。,39。,39。,40,100) insert into values(9,39。,39。,39。,70,65) insert into values(7,39。,39。,39。,200,95) 23 insert into values(5,39。,39。,39。,160,35) insert into values(3,39。,39。,39。) 22 查詢結(jié)果 select * from (三 ) 教材管理 ( 11) /*==============================================================*/ /* Table: SBMANAGE 建立教材管理表 */ /*==============================================================*/ create table SBMANAGE ( SUBID numeric(10) not null, 教材編號(hào) PRE varchar(20) not null, 出版社 CLASSIFY varchar(20) not null, 類別 WRITER varchar(10) not null, 作者 STORAGE numeric(10) not null, 庫(kù)存量 Price smallmoney null, 價(jià)格 constraint PK_SBMANAGE primary key nonclustered (SUBID) 建立主鍵:教材編號(hào) ) Go 數(shù)據(jù)插入 教材管理插入的相關(guān)信息: insert into values(1,39。,39。) insert into values(5,5,39。,39。) insert into values(4,4,39。,39。) insert into values(3,3,39。,39。) insert into values(2,2,39。,39。,163941,19900712) 查詢結(jié)果 select * from 21 (二) 教師管理 ( 11) /*==============================================================*/ /* Table: TeacherManage 建立教師管理表 */ /*==============================================================*/ create table TeacherManage ( T_Id numeric(20) not null, 教師編號(hào) Course_Id numeric(10) null, 課程編號(hào) T_Name varchar(10) not null, 教師姓名 T_Sex varchar(5) not null, 教師性別 T_Adress varchar(50) not null, 教師住址 T_level varchar(10) not null, 教師級(jí)別 constraint PK_TEACHERMANAGE primary key nonclustered (T_Id) 建立主鍵:教師編號(hào) ) Go 數(shù)據(jù)插入 教師管理插入的相關(guān)信息: insert into values(1,1,39。,110,9,11,39。,39。,160041,19900512) insert into values(39。,108,7,9,39。,39。,165541,19900312) insert into values(39。,106,5,7,39。,39。,129941,19900112) insert into values(39。,104,3,5,39。,39。,169941,19881212) insert into values(39。,102,4,2,39。,39。,135641,19890622) insert into values(39。,100,1,1,39。) and type = 39。) and name = 39。) and name = 39。) and type = 39。) and name = 39。) and name = 39。) and type = 39。) and name = 39。) and name = 39。) and type = 39。) and name = 39。) 16 and type = 39。) and name = 39。) and name = 39。) and type = 39。) and type = 39。) and name = 39。) and name = 39。) and type = 39。) and type = 39。) and type = 39。) and name = 39。) and = 39。) alter table 教材發(fā)放 drop constraint FK_教材發(fā)放 _教材發(fā)放 _STUDENTM go if exists (select 1 from r join o on ( = and = 39。) where = object_id(39。) and = 39。) alter table 教材使用 drop constraint FK_教材使用 _教材使用 _COURSEIN go if exists (select 1 from r join o on ( = and = 39。) where = object_id(39。) and = 39。) alter table studentmanage drop constraint FK_STUDENTM_RELATIONS_DEPARTME go if exists (select 1 from r join o on ( = and = 39。) where = object_id(39。) and = 13 39。) alter table TeachManage drop constraint FK_TEACHMAN_RELATIONS_TEACHERM go if exists (select 1 from r join o on ( = and = 39。) where = object_id(39。) and = 39。) alter table GradeManagement drop constraint FK_GRADEMAN_RELATIONS_COURSEIN go if exists (sele