关于存储过程返回值问题,
现有存储过程如下:
create procedure usp_checkSerialNoExist
@serialNo_input int,
@isExist int output
as
begin
if exists(select 1 from tbl1 where Sno = @serialNo_input)
set @isExist = 1
else
set @isExist = 0
end
go
我在vb中用:
str_sql_checkExist = "usp_checkSerialNoExist " + i_sno + "," + i_isExist
db.execute (str_qsl_checkExist)
但为什么i_isExist其值没有做相应变化,
存储过程中的output的变量是不是这样取得的?(vb中怎么将外部的变量传入存储过程中去)