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

正文內(nèi)容

甘全中數(shù)據(jù)庫實驗(完整版)

2025-05-23 06:56上一頁面

下一頁面
  

【正文】 (select Sage from Student where Sdept =39。 運行結(jié)果為:例5查詢與“劉晨”在同一個系學習的學生學號(Sno)、姓名(Sname)和系名(Sdept)。 運行結(jié)果為: ~66進行實現(xiàn) 課本Student_Course數(shù)據(jù)庫的各表為: 例1查詢每個學生及其選修課程的情況。)。) and Sdept39。數(shù)據(jù)結(jié)構(gòu)39。 運行結(jié)果為:2.查詢每一門課的間接先修課(即先修課的先修課)。3.為了避免程序丟失,把程序保存在到規(guī)定的目錄中去。選修課總?cè)藬?shù) 39。CS39。DB\_%設__39。_陽%39。)。IS39。 運行結(jié)果為: 案例9:查詢考試成績不及格的學生的學號 命令為:select distinct Sno from SC where Grade60。Year of Birth39。 運行結(jié)果為: 案例4:查詢?nèi)w學生的姓名及其出生年份命令為: select Sname ,2016Sage 39。C0139。 運行結(jié)果為: 查詢選修了課程的學生人數(shù)。試查詢?nèi)鄙俪煽兊膶W生的學號(Sno)和相應的課程號(Cno)。其命令為:select Cno,Creditsfrom Courses where Cname =39。數(shù)學39。 運行結(jié)果為: 查詢所有年齡在18~22歲(包括18歲和22歲)之間的學生姓名(Sname)及年齡(Sage)。這是一個無條件的選擇查詢,其命令為: select Sno,Sname,Ssex,Sage,Sdept from Students 。運行結(jié)果: ⑤將學習成績的元組(‘S01’, ’C01’,92)添加到基本表Reports中。,3)。null39。,39。數(shù)據(jù)庫39。,39。,39。,39。男39。,19,39。計算機39。)。SQL語句:insert into Students (Sno,Sname,Ssex,Sage,Sdept)values (39。,39。 刪除Students表。使用SQL語句:alter table Students ADD Sentrancedate datetime。二、實驗任務:1.了解并掌握SQL查詢分析器及企業(yè)管理器的使用。,39。,72)。S0239。C0139。insert into Reports(Sno,Cno,Grade)values(39。insertinto Courses (Cno,Cname,Pre_Cno,Credits )values (39。,3)。C0339。,39。數(shù)據(jù)結(jié)構(gòu)39。,39。數(shù)學39。)。insert into Students (Sno,Sname,Ssex,Sage,Sdept)values (39。S0439。,39。劉華39。,39。 。完成啟動企業(yè)管理。五、實驗學時:2學時六、實驗重點及難點:1.列級完整性約束條件2.空值的概念3.CREATE DATABASE和CREATE TABLE 的用法 七、實驗步驟:(一) 企業(yè)管理器創(chuàng)建數(shù)據(jù)庫和表1. 啟動企業(yè)管理器;,找到Microsoft SQL Server 2008打開。使用SQL語句:create database University;2. 創(chuàng)建一個主數(shù)據(jù)文件University_Data和一個日志文件University_Log;然后按路徑找到行數(shù)據(jù)和日志。S0139。insert into Students (Sno,Sname,Ssex,Sage,Sdept)values (39。)。計算機39。,19,39。男39。,39。使用SQL語句:create table Courses (Cno char(9) not null primary key, Cname char(20)unique not null, Pre_Cno char(4), Credits smallint, )。insertinto Courses (Cno,Cname,Pre_Cno,Credits )values (39。C0339。,39。C++39。,39。C0539。,39。insert into Reports(Sno,Cno,Grade)values(39。C0239。S0339。,90)。 create unique index Couo on Courses(Cno)。五、實驗學時:2學時六、實驗重點及難點1.TSQL語句對基本表的定義進行刪除與修改,并插入基本表數(shù)據(jù)。 SQL語句:alter table Students drop constraint UQ__Students__52723D276262D465。 向表中添加元組①將一個學生元組(S01,王建平,男,21,計算機)添加到基本表Students中。自動化39。女39。,39。李偉39。,39。S0639。執(zhí)行結(jié)果:③向Courses表插入元組(‘C01’,’英語’,’’,4)。運行結(jié)果:④請同學們用這個命令,將其余6門課程的信息插入Courses表中。Insert into Courses (Cno,Cname,Pre_Cno,Credits )values (39。C0439。,39。網(wǎng)絡原理39。,39。,92)。運行結(jié)果為: (Sno)和姓名 (Sname)。其命令為:select Sno,Sname,Sage from Students where Sdept in(39。其命令為: select Sname,Sno,Ssex from Students where Sname like 39。 escape 39。其命令為:select count(*) 39。其命令為:select avg(Grade) 39。C0139。 39。 運行結(jié)果為: 案例7:查詢計算機系全體學生的名單 命令為:select Sname from Student where Sdept =39。,39。MA39。 運行結(jié)果為: 案例16:查詢姓“歐陽”且全名為三個漢字的學生的姓名 命令為:select Sname from Student where Sname like 39。 escape 39。其命令為: 命令為:select Sno ,Cno from SC where Grade is null。學生總?cè)藬?shù) 39。2.掌握連接、嵌套和集合查詢的各種使用方法。3.多重嵌套的使用。)。運行結(jié)果為:6.查詢非自動化系的不超過自動化系所有學生的年齡的學生姓名(Sname)和年齡(Sage)。)。計算機39。 運行結(jié)果為: 例3查詢每一門課的間接先修課(即先修課的先修課)。 命令為:select Student .Sno ,Sname from Student ,SC,Course where = and = and =39。CS39。139。)。 union select * from Student where Sage =39。CS39。 運行結(jié)果為: 例18 查詢計算機系的學生與年齡不大于19歲的學生的差集 命令為:select * from Student where Sdept =39。二、實驗任務設計一個簡單的設備管理數(shù)據(jù)庫系統(tǒng)(不限),參考課本218頁。3. 靈活運用索引、視圖、存儲過程、觸發(fā)器等。) drop table 倉庫goif exists (select 1 from sysobjects where id = object_id(39。) drop table 供應商goif exists (select 1 from sysobjects where id = object_id(39。) drop table 職工goif exists (select 1 from sysobjects where id = object_id(39。) drop table 項目goif exists (select 1 from sysobjects where id = object_id(39。能干的人,不在情緒上計較,只在做事上認真;無能的人!不在做事上認真,只在情緒上計較。) and type = 39。) and type = 39。) and type = 39。) and type = 39。利用一種數(shù)據(jù)庫設計工具自動生成數(shù)據(jù)庫模式SQL語句(本實驗使用PowerDesign工具),能夠在數(shù)據(jù)庫管理系統(tǒng)中執(zhí)行相應的SQL語句,創(chuàng)建所設計的數(shù)據(jù)庫。 建立符合BCNF范式的數(shù)據(jù)庫表。 except select * from Student where Sage=19。1939。 運行結(jié)果為: 例15查詢選修了課程1或者選修了課程2的學生 命令為:select * from Student where Sno in (select Sno from SC where Cno =39。 命令為:select Sname ,Sdept from Student where not exists (select * from Course where not exists (select * from SC where Sno=Student .Sno and Cno = ))。 運行結(jié)果為:例11查詢沒有選修了編號為“1”課程的學生姓名(Sname)。CS39。 運行結(jié)果為: 例7 找出每個學生超過他自己選修課程的平均成績的課程號命令為:select * from SC x where Grade = (select avg(Grade) from SC y where = )。 運行結(jié)果為:例4 查詢每個學生的學號,姓名,選修的課程名及成績 命令為:select Student .Sno ,Sname ,Cname,Grade from Student ,SC ,Course where = and = 。2039。C0139。自動化39。 命令為:select Sno ,Sname from Students where Sno in ( select Sno from Reports where C
點擊復制文檔內(nèi)容
教學教案相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1