当前位置:网站首页>【习题七】【数据库原理】
【习题七】【数据库原理】
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中有____恢复、____恢复和大容量日志恢复三种数据库恢复模式。
答案:简单,完全
边栏推荐
- Public and private account sending prompt information (user microservice -- message microservice)
- 启用MemCached的SASL认证
- 2.8 overview of ViewModel knowledge
- alright alright alright
- Detailed explanation of the most complete constraintlayout in history
- The latest version of blind box mall thinkphp+uniapp
- Swift Error Handling
- Nodejs+express+mysql realizes login function (including verification code)
- Tensorflow binary installation & Failure
- 剑指Offer05. 替换空格
猜你喜欢
强大的头像制作神器微信小程序
What is more elegant for flutter to log out and confirm again?
[download attached] password acquisition tool lazagne installation and use
低代码平台国际化多语言(i18n)技术方案
剑指Offer04. 二维数组中的查找【中等】
Low code platform international multilingual (I18N) technical solution
【ArcGIS自定义脚本工具】矢量文件生成扩大矩形面要素
Day 1 of kotlin learning: simple built-in types of kotlin
T430 toss and install OS majave 10.14
雲計算未來 — 雲原生
随机推荐
【计网】第三章 数据链路层(2)流量控制与可靠传输、停止等待协议、后退N帧协议(GBN)、选择重传协议(SR)
ncnn神經網絡計算框架在香柳丁派OrangePi 3 LTS開發板中的使用介紹
Adult adult adult
Nodejs+express+mysql realizes login function (including verification code)
[download attached] password acquisition tool lazagne installation and use
Wechat applet pages always report errors when sending values to the background. It turned out to be this pit!
Do you feel like you've learned something and forgotten it?
Sqoop1.4.4原生增量导入特性探秘
Use of atomicinteger
雲計算未來 — 雲原生
How to stand out quickly when you are new to the workplace?
RedHat5 安装Socket5代理服务器
Application of ncnn Neural Network Computing Framework in Orange Pi 3 Lts Development Board
Solve the problem of VI opening files with ^m at the end
Unicode查询的官方网站
基于Linu开发的项目视频
Node.js: express + MySQL的使用
[embedded] - Introduction to four memory areas
强大的头像制作神器微信小程序
剑指Offer05. 替换空格