当前位置:网站首页>【习题七】【数据库原理】
【习题七】【数据库原理】
2022-07-03 12:03:00 【爱笑的冷面鬼】
一、单选题
1.在SQL Server 中不是对象的是()。
A)用户
B)数据
C)表
D)数据类型
答案:B
2.声明了变量:DECLARE @i int,@c char(4),现在为@i赋值10,为@c赋值’abcd’,正确的语句是()。
A)SET @i=10, @c=‘abcd’
B)SET @i=10, SET @c=‘abcd’
C)SELECT @i=10, @c=‘abcd’
D)SELECT @i=10, SELECT @c=‘abcd’
答案:C
3.在SQL Server服务器上,存储过程是一组预先定义并()的Transact-SQL语句。
A)保存
B)编译
C)解释
D)编写
答案:B
4.当以下代码中的【 】位置分别为break,continue或return时,输出的值为()。
DECLARE @n int
SET @n=3
WHILE @n>0
BEGIN
SET @n=@n-1
IF @n=1 【 】
END
PRINT @n
A)1,0,不输出
B)1,1,_
C)0,0,0
D)0,1,2
答案:A
二、填空题
1.Transact-SQL中可以使用____和____两种变量。
答案:局部变量、全局变量
2.在Transact-SQL中可以使用两类注释符:单行注释____和多行注释____。
答案:- - , / * …… * /
3.用于声明一个或多个局部变量的命令是____。
答案:DECLARE
4.无论是存储过程还是触发器,都是____语句和____语句的集合。
答案:SQL,流程控制
5、在SQL Server中有____恢复、____恢复和大容量日志恢复三种数据库恢复模式。
答案:简单,完全
边栏推荐
- 2020-10_ Development experience set
- If you can't learn, you have to learn. Jetpack compose writes an im app (I)
- It feels great to know you learned something, isn‘t it?
- elastic_ L02_ install
- Do you feel like you've learned something and forgotten it?
- Implement verification code verification
- alright alright alright
- Bert running error: attributeerror: module'tensorflow contrib. tpu' has no attribute 'InputPipelineConfig'
- adb push apk
- Eureka self protection
猜你喜欢
Togaf certification self-study classic v2.0
[ArcGIS user defined script tool] vector file generates expanded rectangular face elements
ncnn神经网络计算框架在香橙派OrangePi 3 LTS开发板中的使用介绍
Differences between initial, inherit, unset, revert and all
If you can't learn, you have to learn. Jetpack compose writes an im app (I)
自抗扰控制器七-二阶 LADRC-PLL 结构设计
initial、inherit、unset、revert和all的区别
记录自己vulnhub闯关记录
TOGAF认证自学宝典V2.0
(最新版) Wifi分销多开版+安装框架
随机推荐
node的ORM使用-Sequelize
adb push apk
Dix règles de travail
Sword finger offer10- I. Fibonacci sequence
Sqoop1.4.4原生增量导入特性探秘
【ManageEngine】IP地址扫描的作用
If you can't learn, you have to learn. Jetpack compose writes an im app (I)
ImportError: No module named examples. tutorials. mnist
(latest version) WiFi distribution multi format + installation framework
Display time with message interval of more than 1 minute in wechat applet discussion area
Summary of error prone knowledge points: Calculation of define s (x) 3*x*x+1.
Kubectl_ Command experience set
1-2 project technology selection and structure
并网-低电压穿越与孤岛并存分析
It feels great to know you learned something, isn‘t it?
wpa_ cli
elastic_ L02_ install
Sword finger offer03 Repeated numbers in the array [simple]
写一个简单的nodejs脚本
Applet wxss introduction