网友您好, 请在下方输入框内输入要搜索的题目:

题目内容 (请给出正确答案)

下列SQL Server语句中出现语法错误的是()。

  • A、DECLARE @Myvar  INT     
  • B、SELECT * FROM [AAA]  
  • C、CREATE DATABASE AAA      
  • D、DELETE * FROM AAA

参考答案

更多 “下列SQL Server语句中出现语法错误的是()。A、DECLARE @Myvar INTB、SELECT * FROM [AAA]C、CREATE DATABASE AAAD、DELETE * FROM AAA” 相关考题
考题 在SQL Server 2000中,有学生表(学号,姓名,年龄,所在系),学号是主码。在这个表上建有视图V1,V1视图的定义语句为: CREATE VIEW V1 AS SELECT姓名,年龄,所在系FROM学生表 WHERE年龄>=(SELECT AVG(年龄)FROM学生表) 有下列操作语句: Ⅰ.UPDATE V1 SET年龄=年龄+1 Ⅱ.SELECT*FROM V1 WHERE年龄>20 Ⅲ.DELETE FROM V1 WHERE年龄>20 Ⅳ.INSERT INTO V1 VALUES(,张三,20,‘计算机系’) 以上语句能正确执行的是A.仅Ⅰ和ⅡB.仅ⅡC.仅Ⅱ和ⅣD.仅Ⅰ、Ⅱ和Ⅲ

考题 SQL语句:SELECT*FROM班级WHERE班级号NOT IN;(SELECT班级号FROM学生)该语句等价于:SELECT*FROM班级WHERE NOT______;(SELECT*FROM学生WHERE班级号=班级.班级号)

考题 有SQL语句: SELECT*FROM教师WHERENOT(工资>30000R工资<2000)与如上语句等价的SQL语句是A.SELECT*FROM 教师 WHERE 工资 BETWEEN 2000 AND 3000B.SELECT*FROM 教师 WHERE 工资>2000 AND工资<3000C.SELECT*FROM 教师 WHERE 工资>2000 OR工资<3000D.SELECT*FROM 教师 WHERE 工资<=2000 AND工资>3000

考题 用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标准,创建一个视图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

考题 用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命令从职工表中派生出含有“职工号”、“姓名”字段的视图,下列语句正确的是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语句。A.DELETE INDEX B.CREATE INDEXC.DELETE FROM D.CREATE UNIQUE CLUSTER INDEX

考题 在当前数据库中根据“学生”表建立视图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学生

考题 下列T-SQL语句中出现语法错误的是()。A.declare @abc intB.select * from gradeC.create database stiD.delete * from grade

考题 利用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 SELECT语句:SELECT*FROM 工资表 WHERE 基本工资=1000下列与该语 有下列SQL SELECT语句: SELECT*FROM 工资表 WHERE 基本工资<=3000 AND 基本工资>=1000 下列与该语句等价的是( )。A.SELECT*FROM 工资表 WHERE 基本工资 BETWEEN 1000 AND 3000B.SELECT*FROM 工资表 WHERE 基本工资 BETWEEN 3000 AND 1000C.SELECT*FROM 工资表 WHERE 基本工资 FROM 1000 INTO 3000D.SELECT*FROM 工资表 WHERE 基本工资 FROM 3000 INTO 1000

考题 根据“歌手”表建立视图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",歌手号)

考题 有SQL语句:SELECT * FROM教师WHERE NOT(工资3000 OR 工资2000)与如上语句等价的SQL语句是A.SELECT*FROM 教师 HWERE 工资 BETWEEN 2000 AND 3000B.SELECT*FROM 教师 HWERE 工资 2000 AND 工资3000C.SELECT*FROM 教师 HWERE 工资2000 OR 工资3000D.SELECT*FROM 教师 HWERE 工资=2000 AND 工资=3000

考题 下列正确的SQL语句是()。A、SELECT*HAVING userB、SELECT*WHERE userC、SELECT*FROM userD、SELECT user INTO*

考题 下列SQL语句中,能够完成求某列最大值的是()。A、SELECT AVG(Age) FROM StudentB、SELECT MAX(Age) FROM StudentC、SELECT MIN(Age) FROM StudentD、SELECT COUNT(*) FROM Student

考题 根据下面所给的AAA数据库,写出下列每条查询语句的执行结果,或者写出下列每条语句或程序段的功能。 假设存在名为AAA的数据库,包括Students(学号char(8),姓名varchar(8),年龄int,专业varchar(20),入学日期DateTime)和Score(学号char(8),课程名varchar(10),成绩numeric(5,2))两张表。 declare @a numeric(5,2),@b numeric(5,2) set @a=(select max(成绩) from score) set @b=(select min(成绩) from score) print @a-@b

考题 V5.x系统中,用SQL语句查询Sybase版本的语句是()A、select ##versionB、select ##version from masterC、select @@version from masterD、select @@version

考题 下列T-SQL语句中出现语法错误的是()。A、declare @abc intB、select * from gradeC、create database stiD、delete* from grade

考题 设有一自由表xx.dbf,下列SELECT-SQL命令中语法错误的是()A、SELECT * FROM xxB、SELECT * FROM xx INTO CURSOR tempC、SELECT * FROM xx INTO TABLE tempD、SELECT * FROM xx INTO temp

考题 在Transact-SQL语法中,以下SELECT语句正确的是()。A、SELECT * FROM studentB、SELECT * FROM student WHERE GETDATE()C、SELECT * FROM student ORDER st_idD、SELECT * FROM student BY St_name

考题 下列Transact-SQL语句中出现语法错误的是()。A、declare @ab cintB、select*from 学生C、delete*from 学生D、update 学生 set 考核=‘优’

考题 You are creating a stored procedure that will delete data from the Contact table in a SQL Server 2005 database. The stored procedure includes the following Transact-SQL statement to handle any errors that occur. BEGIN TRY   BEGIN TRANSACTION   DELETE FROM Person.Contact WHERE ContactID = @ContactID COMMIT TRANSACTION END TRY   BEGIN CATCH   DECLARE @ErrorMessage nvarchar(2000) DECLARE @ErrorSeverity int DECLARE @ErrorState int SELECT @ErrorMessage = ERROR MESSAGE(),@ErrorSeverity=ERROR SEVERITY(),@ErrorState = ERROR STATE() RAISERROR (@ErrorMessage, @ErrorSeverity, @ErrorState) END CATCH;      You test the stored procedure and discover that it leaves open transactions. You need to modify the stored procedure so that it properly handles the open transactions. What should you do?()A、Add a COMMIT TRANSACTION command to the CATCH block.B、Remove the COMMIT TRANSACTION command from the TRY block.C、Add a ROLLBACK TRANSACTION command to the CATCH block.D、Add a ROLLBACK TRANSACTION command to the TRY block.

考题 单选题You are creating a stored procedure that will delete data from the Contact table in a SQL Server 2005 database. The stored procedure includes the following Transact-SQL statement to handle any errors that occur. BEGIN TRY   BEGIN TRANSACTION   DELETE FROM Person.Contact WHERE ContactID = @ContactID COMMIT TRANSACTION END TRY   BEGIN CATCH   DECLARE @ErrorMessage nvarchar(2000) DECLARE @ErrorSeverity int DECLARE @ErrorState int SELECT @ErrorMessage = ERROR MESSAGE(),@ErrorSeverity=ERROR SEVERITY(),@ErrorState = ERROR STATE() RAISERROR (@ErrorMessage, @ErrorSeverity, @ErrorState) END CATCH;      You test the stored procedure and discover that it leaves open transactions. You need to modify the stored procedure so that it properly handles the open transactions. What should you do?()A Add a COMMIT TRANSACTION command to the CATCH block.B Remove the COMMIT TRANSACTION command from the TRY block.C Add a ROLLBACK TRANSACTION command to the CATCH block.D Add a ROLLBACK TRANSACTION command to the TRY block.

考题 单选题设有一自由表xx.dbf,下列SELECT-SQL命令中语法错误的是()A SELECT * FROM xxB SELECT * FROM xx INTO CURSOR tempC SELECT * FROM xx INTO TABLE tempD SELECT * FROM xx INTO temp

考题 单选题下列T-SQL语句中出现语法错误的是()。A declare @abc intB select * from gradeC create database stiD delete* from grade

考题 单选题下列SQL Server语句中出现语法错误的是()。A DECLARE @Myvar INTB SELECT * FROM [AAA]C CREATE DATABASE AAAD DELETE * FROM AAA