CREATE PROC HumanResources.AddDepartment
@Name nvarchar(50), @GroupName nvarchar(50),
@DeptID smallint OUTPUT
AS
IF ((@Name = '') OR (@GroupName = ''))
RETURN -1
INSERT INTO HumanResources.Department (Name, GroupName)
VALUES (@Name, @GroupName)
SET @DeptID = SCOPE_IDENTITY()
RETURN 0
正确执行存储过程的语句是()?
多项选择题
DECLARE @dept int, @result int
EXEC @result = AddDepartment 'Refunds', '', @dept OUTPUT
DECLARE @dept int, @result int
EXEC @result = AddDepartment 'Refunds', 'Computer', @dept OUTPUT
DECLARE @dept int, @result int
EXEC @result = AddDepartment '', '', @dept OUTPUT
DECLARE @dept int, @result int
EXEC @result = AddDepartment @dept OUTPUT
答案:ABC
【原题】:CREATE PROC HumanResources.AddDepartment
@Name nvarchar(50), @GroupName nvarchar(50),
@DeptID smallint OUTPUT
AS
IF ((@Name = '') OR (@GroupName = ''))
RETURN -1
INSERT INTO HumanResources.Department (Name, GroupName)
VALUES (@Name, @GroupName)
SET @DeptID = SCOPE_IDENTITY()
RETURN 0
正确执行存储过程的语句是()?
多项选择题
DECLARE @dept int, @result int
EXEC @result = AddDepartment 'Refunds', '', @dept OUTPUT
DECLARE @dept int, @result int
EXEC @result = AddDepartment 'Refunds', 'Computer', @dept OUTPUT
DECLARE @dept int, @result int
EXEC @result = AddDepartment '', '', @dept OUTPUT
DECLARE @dept int, @result int
EXEC @result = AddDepartment @dept OUTPUT
【解析】:
200题为1关,请收藏当前位置,方便下次学习。
第1关
第2关
400
第3关
完整版《考试通关题库》请扫描下图二维码关注官方微信公众号,加入会员,即可打包下载!经广大会员朋友实战检验,使用本题库考试通过率大大提高!绝对是您考试通关的不二利器!
