更多"[单选题]在SQL Server中,已知Student表中有一个age"的相关试题:
[单选题]单选题】【2.00分】【概念理解】
在SQL Server中,已知Student表中有一个age列,数据类型是int,如果要限制该列的取值范围在18到28之间,可以使用以下()语句
A.alter table Student add check(age<=18 and age>=28)
B.alter table Student add default(age<=18 and age>=28)
C.alter table Student add unique(age<=18 and age>=28)
D.alter table Student add set(age<=18 and age>=28)
[单选题]在SQL Server中,要查询student表中所有email字段非空的email信息,以下语句正确的是()
A.select email from student where email !=null
B.select email from student where email not is null
C.select email from student where email <> null
D.select email from student where email is not null
[多选题]在SQL Server中,数据库中有两张表student(stuid,stuname,stuage),score(stuid,subject,marks)。下面哪些查询可查找出参加过考试的学生姓名?( )【选三项】
A.select stuname from student where stuid in(select stuid from score)
B.select stuname from student,score where student.stuid=score.stuid
C.select stuname from student left outer join score on student.stuid=score.stuid
D.select stuname from student where exists (select * from score where student.stuid=score.stuid)
[单选题]在SQL Server中,将学生表STUDENT中的所有学生年龄AGE字段的值增加1岁,应该使用的命令是( )
A.UPDATE SET AGE WITH AGE+1
B.REPLACE AGE WITH AGE+1
C.UPDATE STUDENT SET AGE=AGE+1
D.UPDATE STUDENT AGE WITH AGE+1
[单选题]单选题】【2.00分】【概念理解】
在SQL Server中,要查询student表中所有email字段非空的email信息,以下语句正确的是()
A.select email from student where email !=null
B.select email from student where email not is null
C.select email from student where email <> null
D.select email from student where email is not null
[单选题]单选题】【2.00分】【概念理解】
在SQL Server中,将学生表STUDENT中的所有学生年龄AGE字段的值增加1岁,应该使用的命令是( )
A.UPDATE SET AGE WITH AGE+1
B.REPLACE AGE WITH AGE+1
C.UPDATE STUDENT SET AGE=AGE+1
D.UPDATE STUDENT AGE WITH AGE+1
[单选题]ACSI定义的基本数据类型中INT16U的值域为( )
A.-32768 ~ 32767
B.0 ~ 65535
C.0 ~ 32767
D.-65536 ~ 65535
[多选题]多选题】【2.00分】【概念理解】
在SQL Server中,数据库中有两张表student(stuid,stuname,stuage),score(stuid,subject,marks)。下面哪些查询可查找出参加过考试的学生姓名?( )【选三项】
A.select stuname from student where stuid in(select stuid from score)
B.select stuname from student,score where student.stuid=score.stuid
C.select stuname from student left outer join score on student.stuid=score.stuid
D.select stuname from student where exists (select * from score where student.stuid=score.stuid)
[单选题]在SQL Server中,以下代码运行结果是( )
declare @sum int,@count int
select @sum=0,@count=1
Label1:
select @sum=@sum+@count
select @count=@count+1
if @count<=5
Goto label1
select @count-1,@sum
A.5 15
B.5 10
C.4 15
D.4 10
[单选题]在SQL Server中,有如下语句,执行结果为( )
Declare @x int
If @x is null Select ‘A’
If @x=0 Select ‘B’
If @x=’’Select ‘C’
A.A
B.B
C.C
D.有编译错误
[单选题]以下哪种数据类型是s7-1200不支持的数据类型( )
A.SINT
B.UINT
C.DT
D.REAL
[单选题]在SQL Server中,如果要在一张职工工资管理表中限制工资的输入范围,应使用( )约束
A.PRIMARY KEY
B.FOREIGN KEY
C.UNIQUE
D.CHECK
[单选题]在Access的下列数据类型中,不能建立索
引的数据类型是().
A.A:文本型
B.B:备注型
C.C:数字型
D.D:日期/时间
型
[填空题]按数据类型分,数据可以分为结构化数据、( )、量测数据。
[单选题]单选题】【2.00分】【概念理解】
在SQL Server中,如果要在一张职工工资管理表中限制工资的输入范围,应使用( )约束
A.PRIMARY KEY
B.FOREIGN KEY
C.UNIQUE
D.CHECK
[判断题]在示教盒程序编辑器里,添加了赋值指令后,可以通过“更改数据类型”选择所需数据类型。
A.正确
B.错误
[判断题]大数据具有海量的数据规模、快速的数据流转、统一的数据类型和价值密度低四大特征,是信息化发展的新阶段。
A.正确
B.错误
[判断题]常量数据或非值数据类型不允许进行赋值。
A.正确
B.错误
[判断题]生产管理PMS数据属于控制区纵向边界数据类型。
A.正确
B.错误