【单选题】对以下语句描述不正确的是() create view view_stuInfo as select stuName,stuNo,stuAddress from stuInfo goA.创建了一个命名为view_stuInfo的视图B.只在一个表上不能创建视图,语法错误C.此视图一般为班主任查询学员信息提供参考D.可以用 select * from view_stuInfo查询stuInfo表所有学员的三个字段的信息
【单选题】对以下语句描述不正确的是() create view view_stuInfo as select stuName,stuNo,stuAddress from stuInfo go
A.创建了一个命名为view_stuInfo的视图
B.只在一个表上不能创建视图,语法错误
C.此视图一般为班主任查询学员信息提供参考
D.可以用 select * from view_stuInfo查询stuInfo表所有学员的三个字段的信息
参考答案和解析
BC
相关考题:
设有关系模式:教师表(教师号,教师名,所在系,工资),现需建立一个统计每个系全体教师工资总额的视图,正确的语句是——。A.CREATE VIEW SalaryView(系名。工资总额)ASSELECT。所在系,COUNT(工资)FROM教师表GROUP BY所在系B.CREATE VIEW SalaryView(系名,工资总额)AS SELECT所在系,sLJM(工资)FROM教师表GROUP BY所在系C.CREATE VIEW SalaryView AS SELECT所在系,COtYNT(工资)FROM教师表 GROUP BY所在系D.CREATE VIEW SalaryView AS SELECT所在系,SLJM(工资)FROM教师表 GROUP BY所在系
(34)查询所有目前年龄是22岁的学生信息:学号,姓名和年龄,正确的命令组是A)CREATE VIEW AGE LIST AS; SELECT学号,姓名,YEAR(DATEQ)-YEAR(出生日期)年龄FROM学生; SELECT学号,姓名,年龄FROM AGE LIST WHERE年龄=22B)CREATE VIEW AGE LIST AS; SELECT学号,姓名,YEAR(出生日期)FROM学生;SELECT学号,姓名,年龄FROM AGE -L IST WHERE YEAR(出生日期)=22C)CREATE VIEW AGE LIST AS; SELECT学号,姓名,YEAR(DATEQ)-YEAR(出生日期)年龄FROM学生; SELECT学号,姓名,年龄FROM学生WHERE YEAR(出生日期)=22D)CREATE VIEW AGE LIST AS STUDENT; SELECT学号,姓名,YEAR(DATE())-YEAR(出生日期)年龄FROM学生;SELECT学号,姓名,年龄FROM STUDENT WHERE年龄=22
根据“歌手”表建立视图myview,视图中含有包括了“歌手号”左边第一位是“1”的所有记录,正确的SQL语句是 ______。A.CREATE VIEW myview AS SELECT*FROM歌手WHERE LEFT(歌手号,1)=“1”B.CREATE VIEW myview AS SELECT*FROM歌手WHERE LIKE(“1”,歌手号)C.CREATE VIEW myview SELECT*FROM歌手WHERE LEFT(歌手号,1)=“1”D.CREATE VIEW myview SELECT*FROM歌手WHERE LIKE(“1”,歌手号)
建立一个视图salary,该视图包括了系号和(该系的)平均工资两个字段,正确的 SQL语句是A.CREATE VIEW salary AS系号,AVG(工资)AS平均工资FROM教师; GROUP BY系号B.CREATE VIEW salary AS SELECT系号,AVG(工资)AS平均工资FROM教师; GROUP BY系名C.CREATE VIEW salary SELECT系号,AVG(工资)AS平均工资FROM教师; GROUP BY系号D.CREATE VIEW salary AS SELECT系号,AVG(工资)AS平均工资FROM教师; GROUP BY系号
用SQL命令生成含有字段职工号、姓名的视图,下列语句正确的是______。A.CREATE VIEW ZG w AS SELECT职工号,姓名FROM职工B.CREATE QUERY ZG w AS SELECT职工号,姓名FROM职工C.CREATE VIEW ZG w AS SELECT职工号,姓名D.CREATE QUERY ZG w AS SELECT职工号,姓名
根据 “ 歌手 ” 表建立视图 myview, 视图中含有包括了 “ 歌手号 ” 左边第一位是 “ 1 ” 的所有记录,正确的 SQL 语句是A)CREATE VIEW myview AS SELECT * FROM 歌手 WHERE LEFT( 歌手号 ,1)="1"B)CREATE VIEW myview AS SELECT * FROM 歌手 WHERE LIKE("1" , 歌手号 )C)CREATE VIEW myview SELECT * FROM 歌手 WHERE LEFT( 歌手号 ,1)="1"D)CREATE VIEW myview SELECT * FROM 歌手 WHERE LIKE("1" , 歌手号 )
(33)在C盘当前文件夹下建立一个名为SDat.txt德顺序文件,要求用InputBox函数输入5名学生的学号(StuNo)、姓名(StuName)和英语成绩(StuEng)。则在下列横线处合适的语句是 。 Private Sub For_Click() Open"C:\SDat.txt"For Output As 1 For i=1 To 5 StuNo=InputBox("请输入学号") StuName=InputBox("请输入姓名") StuEng=Val(InputBox("请输入英语成绩")) Next i Close #1 End SubA.Input#1,StuNo,StuName,StuEndg B.put#1,StuNo,StuName,StuEndgC.Write#1,StuNo,StuName,StuEndg D.Get#1,StuNo,StuName,StuEndg
在数据库已打开的情况下,利用SQL命令从学生表中派生出含有“学号”、“姓名”和“年龄”字段的视图,下列语句正确的是A.CREATE VIEW xs_view AS; SELECT学号,姓名,年龄FROM学生表B.CREATE VIEW xs_view; SELECT学号,姓名,年龄FROM学生表C.CREATE VIEW xs_view AS; (SELECT学号,姓名,年龄FROM学生表)D.CREATE VIEW xs_view; (SELECT学号,姓名,年龄FROM学生表)
根据SQL标准,创建一个视图abc,通过该视图只能对表student中系dept为‘IS’的记录进行更新操作。下面哪条语句适用?()A create view abc as select * from student where dept=’IS’B create view abc as select * from student where dept=’IS’ with check optionC create view abc as student where dept=’IS’D create view abc as select dept=’IS’ from student
You need to create a view EMP_VU. The view should allow the users to manipulate the records of only the employees that are working for departments 10 or 20. Which SQL statement would you use to create the view EMP_VU? ()A. CREATE VIEW emp_vu AS SELECT * FROM employees WHERE department _ id IN (10,20);B. CREATE VIEW emp_vu AS SELECT * FROM employees WHERE department_id IN (10,20) WITH READ ONLY;C. CREATE VIEW emp_vu AS SELECT * FROM employees WHERE department_id IN (10,20) WITH CHECK OPTION;D. CREATE FORCE VIEW emp_vu AS SELECT * FROM employees WITH department_id IN (10,20);E. CREATE FORCE VIEW emp_vu AS SELECT * FROM employees WHERE department_id IN (10,20) NO UPDATE;
用SQL命令生成含有字段职工号、姓名的视图,下列语句正确的是 ______。A.CREATE VIEW ZG_w AS SELECT职工号,姓名FROM职工B.CREATE QUERY ZG_w AS SELECT职工号,姓名FROM职工C.CREATE VIEW ZG w AS SELECT职工号,姓名D.CREATE QUERY ZG_w AS SELECT职工号,姓名
有如下SQL语句: CREATE VIEW view ticket AS SELECT始发点AS名称,票价FROM ticket执行该语句后产生的视图含有字段名是A.始发点、票价B.名称、票价C.名称、票价、终点D.始发点、票价、终点
利用SQL命令从职工表中派生出含有“职工号”、“姓名”字段的视图,下列语句正确的是A) CREATE VIEW ZG_view; SELECT 职工号,姓名FROM职工表B.CREATE VIEW ZG_view AS; SELECT 职工号,姓名 FROM 职工表C.CREATE QUERY ZG_view; SELECT 职工号,姓名 FROM 职工表D.CREATE QUERY ZG_view AS; SELECT 职工号,姓名 FROM 职工表
有如下SQL语句CREATE VIEW stock_view AS SELECT * FROM stock WHERE 交易所=“深圳”执行该语句后产生的试图包含的记录个数是A)1 B)2 C)3 D)4
建立一个视图salary,该视图包括了系号和(该系的)平钧工资两个字段,正确的是SQL语句是A)CREATE VIEW salaryAS系号,AVG(工资)AS平均工资FROM教师;GROUP BY系号B) CREATE VIEW salary AS SELECT系号,AVG(工资)AS平均工资FROM教师;GROUP BY系名C) CREATE VIEW salary SELECT系号,AVG(工资)AS平均工资FROM教师;GROUP BY系号D)CREATE VIEW salary AS SELECT系号,AVG(工资)As平均工资FROM教师;GROUP BY系号
有如下SQL语句:CREATE VIEW view ticket AS SELECT 始发点 AS 名称,票价 FROM ticket执行该语句后产生的视图含有的字段名是A)始发点、票价 B)名称、票价C)名称、票价、终点 D)始发点、票价、终点
查询所有目前年龄是22岁的学生信息:学号,姓名和年龄,正确的命令组是A.CREATE VIEW AGE_LIST AS; SELECT学号,姓名,YEAR(DATE())-YEAR(出生日期)年龄FROM学生; SELECT学号,姓名,年龄FROM AGE_LIST WHERE年龄=22B.CREATE VIEW AGE_LIST AS; SELECT学号,姓名,YEAR(出生日期)FROM学生: SELECT学号,姓名,年龄FROM AGE_LIST WHERE YEAR(出生日期)=22C.CREATE VIEW AGE_LIST AS; SELECT学号,姓名,YEAR(DATE())-YEAR(出生日期)年龄FROM学生; SELECT学号,姓名,年龄FROM学生WHERE YEAR(出生日期)=22D.CREATE VIEW AGE_LIST AS STUDENT; SELECT学号,姓名,YEAR(DATE()).YEAR(出生日期)年龄FROM学生; SELECT学号,姓名,年龄FROM STUDENT WHERE年龄=22
在当前数据库中根据“学生”表建立视图viewone,正确的SQL语句是( )。A.DEFINE VIEW viewone AS SELECT*FROM学生B.DEFINE VIEW viewone SELECT*FRoM学生C.CREATE VIEW viewone AS SELECT*FROM学生D.CREATE VIEW viewone SELECT*FRoM学生
利用SQL命令从职工表中派生出含有“职工号”、“姓名”字段的视图,下列语句正确的是A.CREATE VIEW ZG_view; SELECT职工号,姓名FROM职工表B.CREATE VIEW ZG_view AS; SELECT职工号,姓名FROM职工表C.CREATE QUERY ZG_view; SELECT职工号,姓名FROM职工表D.CREATE QUERY ZG_view AS; SELECT职工号,姓名FROM职工表
根据“歌手”表建立视图myview,视图中含有“歌手号”左边第一位是"1”的所有记录,正确的SQL语句是( )。A)CREATE VIEW myview AS SELECT * FROM 歌手 WHERE LEFT(歌手号,1)="1"B)CREATE VIEW myview AS SELECT * FROM 歌手 WHERE LIKE("1",歌手号)C)CREATE VIEW myview SELECT * FROM 歌手 WHERE LEFT(歌手号,1)="1"D)CREATE VIEW myview SELECT * FROM 歌手 WHERE LIKE("1",歌手号)
建立一个视图salary,该视图包括了系号和(该系的)平均工资两个字段,正确的SQL语句是( )。A)CREATE VIEW salary AS系号,AVG(工资)AS平均工资FROM教师;GROUPBY系号B)CREATEVIEW salaryAS SELECT系号,AVG(工资)AS平均工资FROM教师;GROUPBY系名C)CREATE VIEW Salary SELECT系号,AVG(工资)AS平均工资FROM教师;GROUP BY系号D)CREATE VIEW salaryAS SELECT系号,AVG(工资)AS平均工资FROM教师;GROUPBY系号
用户定义函数“stuinfo(参数)”功能是根据输入学生的学号,通过SELECT命令查询得到学生姓名及各科成绩,正确调用该函数的语句是()。A、SELECT stuinfo(‘2008242346’)B、SELECT dbo.stuinfo(‘2008242346’)C、SELECT*FROM stuinfo(‘2008242346’)D、EXEC stuinfo(‘2008242346’)
设有关系模式商品(商品号,商品名称,单价,数量,类别),建立统计每类商品总数量的视图的正确语句是()A、CREATE VIEW v1AS SELECT类别,SUM(数量)FROM商品GROUP BY类别B、CREATE VIEW v1AS SELECT类别,COUNT(数量)FROM商品GROUP BY类别C、CREATE VIEW v1(类别,总数量)AS SELECT类别,SUM(数量)FROM商品GROUP BY类别D、CREATE VIEW v1(类别,总数量)AS SELECT类别,COUNT(数量)FROM商品GROU PBY类别
有关系模式:学生表(学号,姓名,所在系),建立统计每个系的学生人数的视图的正确语句是()A、CREATE VIEW v1AS SELECT所在系,COUNT(*)FROM学生表GROUP BY所在系B、CREATEVIEW v1AS SELECT所在系,SUM(*)FROM学生表GROUP BY所在系C、CREATE VIEW v1(系名,人数)AS SELECT所在系,SUM(*)FROM学生表GROUP BY所在系D、CREATE VIEW v1(系名,人数)AS ELECT所在系,COUNT(*)FROM学生表GROUP BY所在系
根据“歌手”表建立视图myview,视图含有包括了“歌手号”左边第一位是“1”的所有记录,正确的SQL语句是()A、CREATE VIEW myview SELECT*FROM歌手WHERELIKE(“1”歌手号)B、CREATE VIEW myview ASSELECT*FROM歌手WHERELIKE(“1”歌手号)C、CREATE VIEW myview SELECT*FROM歌手WHERELEFT(歌手号,1)=“1”D、CREATE VIEW myview ASSELECT*FROM歌手WHERELEFT(歌手号,1)="1"
You need to create a view EMP_VU. The view should allow the users to manipulate the records of only the employees that are working for departments 10 or 20.Which SQL statement would you use to create the view EMP_VU?()A、CREATE VIEW emp_vu AS SELECT * FROM employees WHERE department_id IN (10,20);B、CREATE VIEW emp_vu AS SELECT * FROM employees WHERE department_id IN (10,20) WITH READ ONLY;C、CREATE VIEW emp_vu AS SELECT * FROM employees WHERE department_id IN (10,20) WITH CHECK OPTION;D、CREATE FORCE VIEW emp_vu AS SELECT * FROM employees WHERE department_id IN (10,20);E、CREATE FORCE VIEW emp_vu AS SELECT * FROM employees WHERE department_id IN (10,20) NO UPDATE;
单选题用户定义函数“stuinfo(参数)”功能是根据输入学生的学号,通过SELECT命令查询得到学生姓名及各科成绩,正确调用该函数的语句是()。ASELECT stuinfo(‘2008242346’)BSELECT dbo.stuinfo(‘2008242346’)CSELECT*FROM stuinfo(‘2008242346’)DEXEC stuinfo(‘2008242346’)