在SQL SERVER中,声明并创建以下存储过程,正确调用该存储过程的的语句是( )。CREATE PROCEDURE PRO@passNum int OUTPUT,@passPoint int=60ASSelect @passNum=count(*) From stuTable Where point >@passPointGO
A: EXEC PRO 70
B: Declare @sum int; EXEC PRO @sum output
C: Declare @sum int; EXEC PRO @sum output,70
D: Declare @sum int; EXEC PRO @passNum,70
A: EXEC PRO 70
B: Declare @sum int; EXEC PRO @sum output
C: Declare @sum int; EXEC PRO @sum output,70
D: Declare @sum int; EXEC PRO @passNum,70
举一反三
- 在SQL SERVER中,声明并创建以下存储过程,正确调用该存储过程的的语句是( )。CREATE PROCEDURE PRO@passNum int OUTPUT,@passPoint int=60ASSelect @passNum=count(*) From stuTable Where point >@passPointGO A: EXEC PRO 70 B: Declare @sum int; EXEC PRO @sum output C: Declare @sum int; EXEC PRO @sum output,70 D: Declare @sum int; EXEC PRO @passNum,70
- create procedure a@sum int,@name varchar(20)......的这个存储过程的执行:exec a @sum=98,_______ = 'John';英文全部小写
- 创建存储过程如下:<br/>Create<br/>procedure bookproc<br/>@id<br/>int, @title char(20) output<br/>As<br/>Select<br/>@title=title from book where id=@id<br/>执行该存储过程的方法正确的是()。 A: exec bookproc 1, @title output <br/>print<br/>@title B: exec bookproc @id=1, @title output <br/>print<br/>@title C: declare @title char(20)<br/>exec<br/>bookproc 1, @title output <br/>print<br/>@title D: declare @title char(20)<br/>exec<br/>bookproc @id=1, @title output <br/>print<br/>@title
- 在SQL Server 数据库中,下面调用存储过程的语句错误的是()。 A: AEXEC proc_stu @sum OUTPUT,64,78 B: BEXEC proc_stu @sum OUTPUT,@total output,78 C: CEXEC proc_stu @sum OUTPUT,604 D: DEXEC Calculate @sum OUTPUT,@total output
- 创建存储过程如下:Create proc bookproc @id int ,@title char(20) outputAs Select @title=title from book where id=@id执行该存储过程的方法正确的是( ) A: Exec bookproc 1,@title outputPrint @title B: exec bookproc @id=1,@title outputPrint @title C: declare @title char(2)Exec bookproc 1,@title outputPrint @title D: declare @title char(20)Exec bookproc @id=1,@title outputPrint @title