freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

廣工20xx數(shù)據(jù)庫實(shí)驗(yàn)報(bào)告-全文預(yù)覽

2024-11-04 09:45 上一頁面

下一頁面
  

【正文】 create table student( s_no nchar(8) PRIMARY KEY, sname char(8) not null, sex char(2), sbirthday Smalldatetime, dno char(6), spno char(8), FOREIGN KEY (dno) REFERENCES department(dno), FOREIGN KEY (spno) REFERENCES speciality(spno), class_no char(4) ) course 表 create table Course( o char(10) PRIMARY KEY, ame char(20) not null, spno char(8), FOREIGN KEY (spno) REFERENCES speciality(spno), otno tinyint, lecture tinyint, experiment tinyint, semester tinyint, credit tinyint ) 14 teacher 表 create table teacher( t_no char(8) primary key, t_name char(8) not null, t_sex char(2), t_birthday smalldatetime, dno char(6), foreign key (dno) references department(dno), tech_title char(10) ) teacher_course 表 create table teacher_course( tcid smallint primary key, t_no char(8), foreign key (t_no) references teacher(t_no), spno char(8), foreign key (spno) references speciality(spno), class_no char(4), o char(10) not null, foreign key (o) references Course(o), semester char(6), schoolyear char(10) ) Student_course 表 create table student_course( s_no nchar(8), FOREIGN KEY (s_no) REFERENCES student(s_no) on delete cascade, tcid smallint, primary key(s_no,tcid), score tinyint ) Department 表 create table department( dno char(6) PRIMARY KEY, dept_name char(20) NOT NULL, header char(8) ) Speciality 表 create table speciality( spno char(8) PRIMARY KEY, dno char(6), FOREIGN KEY (dno) REFERENCES department(dno), spname char(20) not null ) Class 表 create table class( spno char(8), class_no char(4), header char(8), primary key(spno,class_no), foreign key (spno) references speciality(spno) on delete cascade ) 定義以上各表的外鍵約束,并通過插入新的數(shù)據(jù)記錄來檢查外鍵約束。 答:表示按照數(shù)據(jù)文件邏輯關(guān) 系所構(gòu)建的二維標(biāo)示圖。 where s_no = 00000001 11 student 表更改前的內(nèi)容截圖顯示查 詢分析 student 表更改后的內(nèi)容截圖顯示 (3)、用 DELETE語句刪除 student 表 中數(shù)據(jù); 實(shí)現(xiàn)代碼: DELETE FROM student where sname = 39。00139。00139。 男39。0000000139。 SQL語句 create table Course( o char(10) PRIMARY KEY, ame char(20) not null, spno char(8), FOREIGN KEY (spno) REFERENCES speciality(spno), otno tinyint, lecture tinyint, experiment tinyint, semester tinyint, credit tinyint ) 查詢分析器執(zhí)行情況: SQL語句及執(zhí)行結(jié)果截圖顯示 利用查詢分析器修改上述各表。 (1) 創(chuàng)建 student表 字段名 代碼 類型 約束 學(xué)號(hào) s_no char(8) 主鍵 姓名 sname char(8) 非空 性別 sex char(2) 出生日期 sbirthday Smalldatetime 學(xué)生所在院系編號(hào) dno char(6) 外鍵 專 業(yè)代碼 spno char(8) 外鍵 班級(jí)編碼 class_no char(4) (2)創(chuàng)建 Course表 字段名 代碼 類型 約束 課程編號(hào) o char(10) 主鍵 課程名稱 ame char(20) 非空 專業(yè)代碼 spno char(8) 外鍵 課程類型編號(hào) ctno tinyint 理論學(xué)時(shí) lecture tinyint 實(shí)驗(yàn)學(xué)時(shí) experiment
點(diǎn)擊復(fù)制文檔內(nèi)容
環(huán)評(píng)公示相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1