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

正文內(nèi)容

數(shù)據(jù)庫實(shí)驗(yàn)報(bào)告(編輯修改稿)

2024-09-01 08:23 本頁面
 

【文章內(nèi)容簡介】 9。,39。IS39。)。insert into TEACH values(39。馬悅39。,39。女39。,39。00839。,39。6/9月/0039。,39。CS39。)。COMMIT。4.建立成績表create table Score (sno char(5),o char(3),Score number(4,1),CONSTRAINT PK_Score primary key(sno,o),CONSTRAINT FK_Student_Score FOREIGN KEY (sno ) REFERENCES student(sno), CONSTRAINT FK_Sourse_Score FOREIGN KEY (o) REFERENCES Course(o))。insert into Score values(39。9600139。,39。00139。,)。insert into Score values(39。9600139。,39。00339。,89)。insert into Score values(39。9600139。,39。00439。,86)。insert into Score values(39。9600139。,39。00539。,82)。insert into Score values(39。9600239。,39。00139。,88)。insert into Score values(39。9600239。,39。00339。,)。insert into Score values(39。9600239。,39。00639。,90)。insert into Score values(39。9600539。,39。00439。,92)。insert into Score values(39。9600539。,39。00539。,90)。insert into Score values(39。9600539。,39。00639。,89)。insert into Score values(39。9600539。,39。00739。,78)。insert into Score values(39。9600339。,39。00139。,69)。insert into Score values(39。9700139。,39。00139。,96)。insert into Score values(39。9700139。,39。00839。,95)。insert into Score values(39。9600439。,39。00139。,87)。insert into Score values(39。9600339。,39。00339。,91)。insert into Score values(39。9700239。,39。00339。,91)。insert into Score values(39。9700239。,39。00439。, null)。insert into Score values(39。9700239。,39。00639。,92)。insert into Score values(39。9700439。,39。00539。,90)。insert into Score values(39。9700439。,39。00639。,85)。COMMIT。實(shí)驗(yàn)二:數(shù)據(jù)查詢語言[ 實(shí)驗(yàn)日期 ] 年 月 日[ 實(shí)驗(yàn)?zāi)康?]體會(huì)SQL語言數(shù)據(jù)查詢功能的豐富和復(fù)雜。[ 實(shí)驗(yàn)內(nèi)容 ]3. SQL數(shù)據(jù)查詢語句: 例31: (選擇表中的若干列) 求全體學(xué)生的學(xué)號(hào)、姓名、性別和年齡。select SSEX,SAGE,SNO,SNAME from student。 例32: (不選擇重復(fù)行) 求選修了課程的學(xué)生學(xué)號(hào)。select distinct sno from score where sno=。 例33: (選擇表中的所有列) 求全體學(xué)生的詳細(xì)信息。 select * from student。 例34: (使用表達(dá)式) 求全體學(xué)生的學(xué)號(hào)、姓名和出生年份。 select sno,sname,sage from student。 例35: (使用列的別名) 求學(xué)生的學(xué)號(hào)和出生年份,顯示時(shí)使用別名“學(xué)號(hào)”和“出生年份”。 select sno as 學(xué)號(hào),sage as 出生年份 from student。 例36: (比較大小條件) 求年齡大于19歲的學(xué)生的姓名和年齡。 select sname,sage from student where sage19。 例37: (比較大小條件) 求計(jì)算機(jī)系或信息系年齡大于18歲的學(xué)生的姓名、系和年齡。 select sname,sage,sdept from student where sdept=39。CS39。 or sdept=39。IS39。and sage18。 例38: (確定范圍條件) 求年齡在19歲與22歲(含19歲和22歲)之間的學(xué)生的學(xué)號(hào)和年齡。 select sno,sage from student where sage between 19 and 22。 例39: (確定范圍條件) 求年齡不在19歲與22歲之間的學(xué)生的學(xué)號(hào)和年齡。 select sno,sage from student where sage not between 19 and 22。 例310:(確定集合條件) 求在下列各系的學(xué)生信息:數(shù)學(xué)系和計(jì)算機(jī)系。 select * from student where sdept in(39。MA39。,39。CS39。)。 例311:(確定集合條件) 求不是數(shù)學(xué)系和計(jì)算機(jī)系的學(xué)生信息。 select * from student where sdept not in(39。MA39。,39。CS39。)。 例312:(匹配查詢) 求姓名是以“李”打頭的學(xué)生。 select * from student where sname like 39。李%39。 例313:(匹配查詢) 求姓名中含有“志”的學(xué)生。select * from student where sname like 39。%志%39。 例314:(匹配查詢) 求姓名長度至少是三個(gè)漢字且倒數(shù)第三個(gè)漢字必須是“馬”的學(xué)生。 select * from student where sname like 39。%馬__39。 例315:(匹配查詢) 求選修課程001或003,成績?cè)?0至90之間,學(xué)號(hào)為96xxx的學(xué)生的學(xué)號(hào)、課程號(hào)和成績。 select sno,o,score from score where o in(39。00139。,39。00339。)and score between 80 and 90 and sno like 39。96__39。 例316:(涉及空值查詢) 求缺少學(xué)習(xí)成績的學(xué)生的學(xué)號(hào)和課程號(hào)。 select sno,o from score where score is null。 例317:(控制行的顯示順序) 求選修003課程學(xué)生的學(xué)號(hào)、課程號(hào)和分?jǐn)?shù),并按分?jǐn)?shù)的降序進(jìn)行排列。 select sno,o,score from score where o=39。00339。order by score desc。升序是asc 例318:(組函數(shù)) 求學(xué)生總?cè)藬?shù)。 select count(sno) as 總?cè)藬?shù) from student。 例319:(組函數(shù)) 求選修了課程的學(xué)生人數(shù)。 select count(sno) as 總?cè)藬?shù) from score。 例320:(組函數(shù)) 求計(jì)算機(jī)系學(xué)生的平均年齡。 select avg(sage) as 平均年齡 from student where sdept=39。CS39。 例321:(組函數(shù)) 求選修了課程001的最高、最低與平均成績。 select max(score) as 最高成績,min(score) as 最低成績,avg(score
點(diǎn)擊復(fù)制文檔內(nèi)容
環(huán)評(píng)公示相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖片鄂ICP備17016276號(hào)-1