【正文】
(8)=39。=總分from 學(xué)生where 性別=39。)運(yùn)行結(jié)果:兩者都有數(shù)據(jù),因?yàn)橥ㄟ^(guò)視圖插入是直接對(duì)表的操作。該游標(biāo)為動(dòng)態(tài)游標(biāo)39。沒(méi)有打開(kāi)游標(biāo)39。非動(dòng)態(tài)游標(biāo),包含總行數(shù)39。0239。0913011239。補(bǔ)考39。沒(méi)有影響39。stu_login139。myrole39。stu_login2_u39。已經(jīng)成功插入記錄!39。刪除了選修表數(shù)據(jù),有影響39。2008090939。不能輸入年齡小于10的學(xué)生39。0139。沒(méi)有打開(kāi)游標(biāo)39。該游標(biāo)為動(dòng)態(tài)游標(biāo)39。非動(dòng)態(tài)游標(biāo),包含總行數(shù)39。,39。)習(xí)題八一、填空題 4. scroll 5. fetch check option 9. 查詢 10. 更新二、選擇題 三、實(shí)踐題1.use jxglgocreate view informasselect 學(xué)號(hào),姓名,性別,39。 group by left(學(xué)號(hào),6)15.select * from 學(xué)生 a where 出生日期=(select max(出生日期) from 學(xué)生 b where =)16.select * from 選修 a where 成績(jī)(select avg(成績(jī)) from 選修 b where =)17.select * from 選修 where 成績(jī)(select avg(成績(jī)) 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二、選擇題15DCBDA 610DCDBD 1115 ACBDB 1620. BDBAB 2125 DCCBC三、實(shí)踐題1.declare a int,b int,c floatset a =10set b=20set c=a*bprint c2.declare i tinyint,j tinyintset i=1while i=4begin set j=2*i1 print space(202*i)+ replicate(39。goselect,count(*) from 學(xué)生where 籍貫=39。10.select * from 學(xué)生where 出生日期 between 39。)7.select* from 學(xué)生 order by 總分desc8.select ,姓名,性別,課程號(hào),成績(jī) from 學(xué)生,選修where = and 成績(jī)859.select 姓名,39。6.select * from 學(xué)生 where 性別=39。go(10)exec sp_addtype 編號(hào),39。,size=1,maxsize=unlimited,filegrowth=1)go(3)alter database lx modify name=studbgo(4)習(xí)題五一、選擇題15. CDBAB 1620. DBA AB 2125 BABCA二、填空題 12. 規(guī)則對(duì)象 13. 查詢 14. 字段 15. check三、實(shí)踐題2.2.use libararygocreate table 學(xué)生(學(xué)號(hào) char(8) not null,姓名 varchar(20) not null,性別 char(2),院系 varchar(20))gocreate table 借閱(學(xué)號(hào) char(8) not null,書(shū)名 char(6) not null,借書(shū)日期 datetime,還書(shū)日期 datetime)go(1)use librarygo alter table 學(xué)生 add 民族 varchar(6)constraint df_學(xué)生_民族 default 39。,size=5,maxsize=10,filegrowth=1)log on(name=lx_log,filename=39。d:\stu\39。05512159[09][09][09]39。not null