【正文】
(8)=39。=總分from 學生where 性別=39。)運行結(jié)果:兩者都有數(shù)據(jù),因為通過視圖插入是直接對表的操作。該游標為動態(tài)游標39。沒有打開游標39。非動態(tài)游標,包含總行數(shù)39。0239。0913011239。補考39。沒有影響39。stu_login139。myrole39。stu_login2_u39。已經(jīng)成功插入記錄!39。刪除了選修表數(shù)據(jù),有影響39。2008090939。不能輸入年齡小于10的學生39。0139。沒有打開游標39。該游標為動態(tài)游標39。非動態(tài)游標,包含總行數(shù)39。,39。)習題八一、填空題 4. scroll 5. fetch check option 9. 查詢 10. 更新二、選擇題 三、實踐題1.use jxglgocreate view informasselect 學號,姓名,性別,39。 group by left(學號,6)15.select * from 學生 a where 出生日期=(select max(出生日期) from 學生 b where =)16.select * from 選修 a where 成績(select avg(成績) from 選修 b where =)17.select * from 選修 where 成績(select avg(成績) from 選修)略習題七一、填空題 8. max()9. waitfor 11. sysments 12. ‘a(chǎn)b’ 13. 當前系統(tǒng)日期時間的字符 14. TSQL 15. GO 16. 批處理17. Unicode 18. 內(nèi)嵌表值 19. smalldatetime 20. smallmoney二、選擇題15DCBDA 610DCDBD 1115 ACBDB 1620. BDBAB 2125 DCCBC三、實踐題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 學生where 籍貫=39。10.select * from 學生where 出生日期 between 39。)7.select* from 學生 order by 總分desc8.select ,姓名,性別,課程號,成績 from 學生,選修where = and 成績859.select 姓名,39。6.select * from 學生 where 性別=39。go(10)exec sp_addtype 編號,39。,size=1,maxsize=unlimited,filegrowth=1)go(3)alter database lx modify name=studbgo(4)習題五一、選擇題15. CDBAB 1620. DBA AB 2125 BABCA二、填空題 12. 規(guī)則對象 13. 查詢 14. 字段 15. check三、實踐題2.2.use libararygocreate table 學生(學號 char(8) not null,姓名 varchar(20) not null,性別 char(2),院系 varchar(20))gocreate table 借閱(學號 char(8) not null,書名 char(6) not null,借書日期 datetime,還書日期 datetime)go(1)use librarygo alter table 學生 add 民族 varchar(6)constraint df_學生_民族 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