【正文】
stu_login1_u39。myrole39。stu_login2_u39。stu_login239。stu_login1_u39。stu_login139。已經(jīng)成功插入記錄!39。學(xué)號不存儲(chǔ)在學(xué)生表中,不能插入該記錄39。0802010239。沒有影響39。刪除了選修表數(shù)據(jù),有影響39。0639。0801010139。補(bǔ)考39。2008090939。男39。張風(fēng)39。0913011239。不能輸入年齡小于10的學(xué)生39。0139。0139。0239。0139。08010139。是水仙花數(shù)39。非動(dòng)態(tài)游標(biāo),包含總行數(shù)39。沒有打開游標(biāo)39。該游標(biāo)為動(dòng)態(tài)游標(biāo)39。非動(dòng)態(tài)游標(biāo),包含總行數(shù)39。沒有打開游標(biāo)39。該游標(biāo)為動(dòng)態(tài)游標(biāo)39。非動(dòng)態(tài)游標(biāo),包含總行數(shù)39。沒有打開游標(biāo)39。該游標(biāo)為動(dòng)態(tài)游標(biāo)39。非動(dòng)態(tài)游標(biāo),包含總行數(shù)39。沒有打開游標(biāo)39。該游標(biāo)為動(dòng)態(tài)游標(biāo)39。)運(yùn)行結(jié)果:兩者都有數(shù)據(jù),因?yàn)橥ㄟ^視圖插入是直接對表的操作。,39。,39。go2.select * from inform3.use jxglgocreate view Inform asselect * from 學(xué)生go insert into Inform (學(xué)號,姓名,性別) values (39。=總分from 學(xué)生where 性別=39。)習(xí)題八一、填空題 4. scroll 5. fetch check option 9. 查詢 10. 更新二、選擇題 三、實(shí)踐題1.use jxglgocreate view informasselect 學(xué)號,姓名,性別,39。 set n=n+1 endgo6.create function score_info(xh char(8))returns total_score table (學(xué)號 char(8),姓名 char(6),性別 char(2),課程號 char(2),課程名稱 varchar(20),成績 numeric(5,1))asbegininsert total_scoreselect ,姓名,性別,課程名稱,from 學(xué)生,課程,選修where = and = and =xhreturn end go select * from score_info(39。)returns table as return(select ,姓名,性別,課程號,班級號 from 教師,授課where = and =gh)go select * from (default)go4.create function (num1 int,num2 int)returns intasbegindeclare max intset max=case when num1=num2 then num1 when num1=num2 then num2 endreturn maxend5.declare n int,i int,j int,k int set n=100while n=999 begin set i=n/100 set j=(nI*100)/10 set k=n%10 if n=i*i*i+j*j*j+k*k*k print cast(n as char(3))+39。,j) set i=i+1end3.create function (gh char(8)=39。 group by left(學(xué)號,6)15.select * from 學(xué)生 a where 出生日期=(select max(出生日期) from 學(xué)生 b where =)16.select * from 選修 a where 成績(select avg(成績) from 選修 b where =)17.select * from 選修 where 成績(select avg(成績) from 選修)略習(xí)題七一、填空題 8. max()9. waitfor 11. sysments 12. ‘a(chǎn)b’ 13. 當(dāng)前系統(tǒng)日期時(shí)間的字符 14. TSQL 15. GO 16. 批處理17. Unicode 18. 內(nèi)嵌表值 19. smalldatetime 20. smallmoney二