当前位置:网站首页>【习题七】【数据库原理】
【习题七】【数据库原理】
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中有____恢复、____恢复和大容量日志恢复三种数据库恢复模式。
答案:简单,完全
边栏推荐
- Atomic atomic operation
- 2.6 preliminary cognition of synergetic couroutines
- 自抗扰控制器七-二阶 LADRC-PLL 结构设计
- Write a simple nodejs script
- [download attached] password acquisition tool lazagne installation and use
- Sqoop1.4.4原生增量导入特性探秘
- error: expected reference but got (raw string)
- Public and private account sending prompt information (user microservice -- message microservice)
- Redhat5 installing socket5 proxy server
- Display time with message interval of more than 1 minute in wechat applet discussion area
猜你喜欢

Drop down refresh conflicts with recyclerview sliding (swiperefreshlayout conflicts with recyclerview sliding)

T430 toss and install OS majave 10.14

公纵号发送提示信息(用户微服务--消息微服务)

Powerful avatar making artifact wechat applet

With pictures and texts, summarize the basic review of C language in detail, so that all kinds of knowledge points are clear at a glance?

Use bloc to build a page instance of shutter

Node.js: express + MySQL的使用

阿里 & 蚂蚁自研 IDE

Sword finger offer06 Print linked list from end to end
![Sword finger offer03 Repeated numbers in the array [simple]](/img/cf/c1ad2f2a45560b674b5b8c11fed244.png)
Sword finger offer03 Repeated numbers in the array [simple]
随机推荐
context. Getexternalfilesdir() is compared with the returned path
elastic_ L02_ install
Swift Error Handling
Using swift language features, write a pseudo-random number generator casually
2021 autumn Information Security Experiment 1 (password and hiding technology)
Project video based on Linu development
Take you to the installation and simple use tutorial of the deveco studio compiler of harmonyos to create and run Hello world?
repo Manifest Format
剑指Offer04. 二维数组中的查找【中等】
initial、inherit、unset、revert和all的区别
Drop down refresh conflicts with recyclerview sliding (swiperefreshlayout conflicts with recyclerview sliding)
Unicode查询的官方网站
What is more elegant for flutter to log out and confirm again?
If you can't learn, you have to learn. Jetpack compose writes an im app (II)
记录自己vulnhub闯关记录
GaN图腾柱无桥 Boost PFC(单相)七-PFC占空比前馈
Sword finger offer09 Implementing queues with two stacks
十条职场规则
如何在微信小程序中获取用户位置?
Summary of error prone knowledge points: Calculation of define s (x) 3*x*x+1.