一、填空题。(将正确答案填入括号内,每空1分,共20分)
1、数据库管理系统、 网状型、层次型、关系型、面向对象型
2、逻辑数据性、物理数据性
3、.mdf .ndf
4、表
5、select子句、from子句、where子句
6、局部变量、全局变量
7、abc
8、索引视图
9、系统存储过程、用户定义的存储过程、扩展存储过程
二、单项选择题,将答案填入对下面表格中。 (每题3分,共30分)
题号 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 |
答案 | A | B | D | C | B | C | B | D | C | B |
1、√ 2、×3、√4、×5、×6、√7、√8、√9、√10、×
四、查询的相关操作题。(共18分)
1、select * from student where 院系=‘数学’
2、答案一:select * from student where 年龄 between 20 and 23
答案二:select * from student where 年龄〉=20 and 年龄<=23
3、select * from sc where 成绩<=60
4、select * from sc where 课程=‘数学’order by 成绩 desc
5、select student.学号,姓名,院系,sc.成绩
from student inner join sc
on student.学号=sc.学号 and sc.成绩〉80
五、求1+2+3+…+100的和。(共12分)
@i=1
@sum=@sum+@i
@i=@i+1