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

正文內(nèi)容

數(shù)據(jù)庫實驗報告(留存版)

2024-09-13 08:23上一頁面

下一頁面
  

【正文】 VAR。end。beginselect sno into psno from student where sno=:。END。begin open CUR_VAR。編譯原理39。6. SQL事務處理: 例61: (事務回退) 將Course表中的 ‘程序設計’ 課程學時數(shù)修改為80、 ‘編譯原理’ 課程學時數(shù)修改為70學時,查詢?nèi)空n程的總學時數(shù)后,取消所有修改(ROLLBACK)。 例49: (視圖更新) 刪除視圖STUDENT_GR的全部數(shù)據(jù)。,39。 select * from (select sno,sum(score) as 總成績 from score group by sno order by sum(score) desc) where rownum6。select sname,sdept from student where sageall(select sage from student where sdept=39。李麗39。 SELECT SAGE FROM STUDENT GROUP BY SNO。 例319:(組函數(shù)) 求選修了課程的學生人數(shù)。%馬__39。CS39。 例36: (比較大小條件) 求年齡大于19歲的學生的姓名和年齡。9700439。insert into Score values(39。,95)。00739。,39。9600239。insert into Score values(39。,39。,39。男39。CS39。,39。insert into COURSE values(39。,80)。 mit。,39。9700339。0239。,39。,39。馬小燕39。create table Scasselect * from STUDENT。 例25: (修改數(shù)據(jù)) 將Student表中的學號’96001’ 改為‘96010’,根據(jù)返回信息解釋其原因。 顯示:在行: 6 上開始執(zhí)行命令時出錯 insert into Score values(39。正確的為:insert into student(sno,sname,sdept,sclass) values(39。9600139。 例12: (修改表結(jié)構(gòu)) 在Student表中將SSEX字段修改為char(2),觀察返回結(jié)果,分析原因。)。SC39。(2) 修改上面插入語句,讓其能正確地插入一條記錄。 顯示:在行: 10 上開始執(zhí)行命令時出錯 update STUDENT set SNO=39。truncate table Sc。,39。,39。0239。9700239。,39。insert into Student values(39。數(shù)學分析39。,72)。insert into COURSE values(39。CS39。女39。,39。,39。6/9月/0039。insert into Score values(39。9600239。,39。00139。,87)。insert into Score values(39。實驗二:數(shù)據(jù)查詢語言[ 實驗日期 ] 年 月 日[ 實驗目的 ]體會SQL語言數(shù)據(jù)查詢功能的豐富和復雜。 or sdept=39。,39。00339。 例321:(組函數(shù)) 求選修了課程001的最高、最低與平均成績。) group by sdept,sclass。李麗39。00439。 例42: (建立視圖) 建立由學號和平均成績兩個字段的視圖STUDENT_GR。男39。5. SQL數(shù)據(jù)控制語句: 例51: (授權) 給左右鄰近同學(用戶)授予在表Student上的SELECT權限,并使這兩個用戶具有給其他用戶授予相同權限的權限。update course set ctime=70 where ame=39。[ 實驗內(nèi)容 ]7.索引與數(shù)據(jù)庫完整性 例71: (建立索引) 為Score表按課程號升序、分數(shù)降序建立索引,索引名為SC_GRADE。end。loopfetch CUR_VAR INTO stu。(3) 在Course上創(chuàng)建一個更新觸發(fā)器TR_Course_Upd,對Course表的課程號進行更新操作,則更新Score表中對應的課程號。po %type。close CUR_AVG。cursor CUR_VAR is select * from Student。update course set ctime=70 where ame=39。revoke select on student from user1。9600639。張然39。 例340 (from子查詢) 求總成績排名前五的學生學號和總成績。 例336:(子查詢ALL) 求比數(shù)學系中全體學生年齡大的學生的姓名和系。select sname,sdept,sage from student where sage(select sage from student where sname=39。并給出正確的查詢語句。 select count(sno) as 總?cè)藬?shù) from student。 select * from student where sname like 39。,39。 select sno as 學號,sage as 出生年份 from student。insert into Score values(39。,91)。00839。,39。9600539。insert into Score values(39。,)。馬悅39。23/2月/0039。,39。,39。男39。,80)。微機原理39。,18)。CS39。insert into Student values(39。,39。9600439。0139。,39。例27: (創(chuàng)建表) 利用Student表的查詢結(jié)果創(chuàng)建Sc表,表中記錄與Student表相同。程序設計39。(1) 根據(jù)返回信息解釋其原因。(2) 修改上面插入語句,讓其能正確地插入一條記錄。insert into student(sno,sname,sdept) values(39。顯示:alter table STUDENT modify (SSEX char(2))錯誤報告 SQL 錯誤: ORA01441: 無法減小列長度, 因為一些值過大01441. 00000 cannot decrease column length because some value is too big 例13: (修改表結(jié)構(gòu)) 在Student表中增加BirthDay(date) 字段。(1) 根據(jù)返回信息解釋其原因。,39。修改為:insert into Score values(39。9601039。 例210: (刪除表) 刪除數(shù)據(jù)庫表Sc。女39。劉東明39。,39。,39。0339。9600539。,144)。insert into COURSE values(39。00839。)。,39。MA39。男39。,39。9600139。,39。00539。,69)。insert into Score values(39。9700239。[ 實驗內(nèi)容 ]3. SQL數(shù)據(jù)查詢語句: 例31: (選擇表中的若干列) 求全體學生的學號、姓名、性別和年齡。IS39。CS39。)and score between 80 and 90 and sno like 39。 select max(score) as 最高成績,min(score) as 最低成績,avg(score) as 平均成績 from score where o=39。 例328:(自然連接查詢) 求學生學號、姓名以及其選修課程的課程號和成績,但查詢結(jié)果中只能有一個SNO字段。)。)。create view student_gr as select sno as 學號,avg(score) as 平均成績 from score group by sno。,19)。create user user1 identified by user1。編譯原理39。create unique index sc_grade on score(sno asc,score desc)。
點擊復制文檔內(nèi)容
環(huán)評公示相關推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1