当前位置:网站首页>【習題七】【數據庫原理】
【習題七】【數據庫原理】
2022-07-03 12:45: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中有____恢複、____恢複和大容量日志恢複三種數據庫恢複模式。
答案:簡單,完全
边栏推荐
- Sword finger offer05 Replace spaces
- Export the entire Oracle Database
- Define a list, store n integers, and calculate the length, maximum value, minimum value and average value of the list
- 云计算未来 — 云原生
- Implement verification code verification
- TOGAF认证自学宝典V2.0
- Social community forum app ultra-high appearance UI interface
- The upward and downward transformation of polymorphism
- Applet wxss introduction
- Exploration of sqoop1.4.4 native incremental import feature
猜你喜欢
Differences between initial, inherit, unset, revert and all
The latest version of lottery blind box operation version
2.8 overview of ViewModel knowledge
阿里 & 蚂蚁自研 IDE
Application of ncnn Neural Network Computing Framework in Orange Pi 3 Lts Development Board
电压环对 PFC 系统性能影响分析
Solve the problem of VI opening files with ^m at the end
Detailed explanation of the most complete constraintlayout in history
如何在微信小程序中获取用户位置?
Wechat applet pages always report errors when sending values to the background. It turned out to be this pit!
随机推荐
4. 无线体内纳米网:电磁传播模型和传感器部署要点
[ArcGIS user defined script tool] vector file generates expanded rectangular face elements
十條職場規則
启用MemCached的SASL认证
02_ Lock the code, and don't let the "lock" become a worry
2020-09_ Shell Programming Notes
Sword finger offer06 Print linked list from end to end
Ten workplace rules
Sword finger offer03 Repeated numbers in the array [simple]
2.9 overview of databinding knowledge points
剑指Offer10- I. 斐波那契数列
Ali & ant self developed IDE
Attack and defense world mobile--ph0en1x-100
context. Getexternalfilesdir() is compared with the returned path
Adult adult adult
【计网】第三章 数据链路层(2)流量控制与可靠传输、停止等待协议、后退N帧协议(GBN)、选择重传协议(SR)
Display time with message interval of more than 1 minute in wechat applet discussion area
[embedded] - Introduction to four memory areas
Node.js: express + MySQL的使用
Eureka self protection