题目详情
当前位置:首页 > 职业培训考试
题目详情:
发布时间:2023-10-27 23:59:30

[单选题]在SQL Server中,以下()语句能够将”java“课的学分赋值给变量
A.select credit into @credit from course where cname=’java’
B.select credit=@credit from course where cname=’java’
C.select @credit=credit from course where cname=’java’
D.select credit from course where cname=’java’ and credit=@credit

更多"[单选题]在SQL Server中,以下()语句能够将”java“课的"的相关试题:

[单选题]单选题】【2.00分】【概念理解】
在SQL Server中,以下()语句能够将”java“课的学分赋值给变量
A.select credit into @credit from course where cname=’java’
B.select credit=@credit from course where cname=’java’
C.select @credit=credit from course where cname=’java’
D.select credit from course where cname=’java’ and credit=@credit
[单选题]在SQL Server中,以下为变量赋值的SQL语句,语法错误的是( )
A.set @a=3,@b=4
B.select @a=3,@b=4
C.set @a=3;set @b=4
D.select @a=3;select @b=4
[单选题]单选题】【2.00分】【概念理解】
在SQL Server中,以下为变量赋值的SQL语句,语法错误的是( )
A.set @a=3,@b=4
B.select @a=3,@b=4
C.set @a=3;set @b=4
D.select @a=3;select @b=4
[单选题]在SQL Server中,以下语句的执行结果是( )。 DECLARE @var1 char(20), @var2 char(20) SET @var1='实现' SET @var2=@var1+ '中华民族伟大复兴' SELECT @var2
A.实现中华民族伟大复兴
B.实现 中华民族伟大复兴
C.中华民族伟大复兴
D.实现
[单选题]在SQL Server中,对以下语句描述不正确的是( ) create view view_stuInfo as select stuName,stuNo,stuAddress from stuInfo go
A.创建了一个命名为view_stuInfo的视图
B.只在一个表上不能创建视图,语法错误
C.此视图一般为班主任查询学员信息提供参考
D.可以用 select * from view_stuInfo查询stuInfo表所有学员的三个字段的信息
[单选题]单选题】【2.00分】【概念理解】
在SQL Server中,以下语句的执行结果是( )。 DECLARE @var1 char(20), @var2 char(20) SET @var1='实现' SET @var2=@var1+ '中华民族伟大复兴' SELECT @var2
A.实现中华民族伟大复兴
B.实现 中华民族伟大复兴
C.中华民族伟大复兴
D.实现
[单选题]在SQL Server中,执行以下语句, 执行的循环次数为( ) declare @n int set @n=3 while @n<5 begin if @n=4 print ltrim(@n)+'的平方数为'+ltrim(@n*@n) set @n=@n+1 end
A.0次
B.1次
C.2次
D.死循环
[单选题] 以下哪个SQL语句是正确的?( )
A.insert into users (‘p001’,’张三’,’男’);
B.create table (Code int primary key);
C.update users Code=’p002’ where Code=’p001’;
D.select Code as ‘代号’ from users;
[单选题]单选题】【2.00分】【概念理解】
在SQL Server中,执行以下语句, 执行的循环次数为( ) declare @n int set @n=3 while @n<5 begin if @n=4 print ltrim(@n)+'的平方数为'+ltrim(@n*@n) set @n=@n+1 end
A.0次
B.1次
C.2次
D.死循环
[单选题]在SQL Server中,以下()语句的输出结果不是22
A.select abs(-22)
B.select abs(22)
C.select ceiling(22.1)
D.select floor(22.9)
[单选题]在SQL Server中,查询course表中的前5行,以下正确SQL语句是( )
A.select top 5 * from course
B.select top (5) from course
C.select top 5 from course
D.select top (5*) from course
[单选题]单选题】【2.00分】【概念理解】
在SQL Server中,对以下语句描述不正确的是( ) create view view_stuInfo as select stuName,stuNo,stuAddress from stuInfo go
A.创建了一个命名为view_stuInfo的视图
B.只在一个表上不能创建视图,语法错误
C.此视图一般为班主任查询学员信息提供参考
D.可以用 select * from view_stuInfo查询stuInfo表所有学员的三个字段的信息
[单选题]假设x和y均为float型变量,则以下赋值表达式语句中不合法的是().
A.x=+1;
B.y=(x%2)/10;
C.x*=y+8;
D.x=y=0;
[单选题]在SQL Server中,T-SQL的输出语句是()
A.print
B.write
C.select
D.set
[单选题]以下能正确定义变量a、b和c并为其赋值的语句是( ).
A.int a=5; b=5; c=5
B.int
A,b,c=5
C.a=5, b=5, c=5
D.int a=5, b=5, c=5
[单选题]在SQL Server中,关于case语句,以下说法正确的是( )
A.then关键字后面可以使用insert、update和delete语句
B.then关键字后面可以使用print语句
C.case关键字后面不能有任何的表达式
D.case语句中else关键字可以省略
[单选题]单选题】【2.00分】【概念理解】
在SQL Server中,以下()语句的输出结果不是22
A.select abs(-22)
B.select abs(22)
C.select ceiling(22.1)
D.select floor(22.9)
[多选题]在SQL Server中,下列属于T-SQL事务管理语句的是( )。【选三项】
A.BEGIN TRANSACTION
B.END TRANSACTION
C.COMMIT TRANSACTION
D.ROLLBACK TRANSACTION
[单选题]在SQL Server中,创建表的SQL语句是()
A.create schema
B.create table
C.create view
D.create index

我来回答:

购买搜题卡查看答案
[会员特权] 开通VIP, 查看 全部题目答案
[会员特权] 享免全部广告特权
推荐91天
¥36.8
¥80元
31天
¥20.8
¥40元
365天
¥88.8
¥188元
请选择支付方式
  • 微信支付
  • 支付宝支付
点击支付即表示同意并接受了《购买须知》
立即支付 系统将自动为您注册账号
请使用微信扫码支付

订单号:

请不要关闭本页面,支付完成后请点击【支付完成】按钮
恭喜您,购买搜题卡成功
重要提示:请拍照或截图保存账号密码!
我要搜题网官网:https://www.woyaosouti.com
我已记住账号密码