set ANSI_NULLS ON
set QUOTED_IDENTIFIER ON
GO
ALTER PROCEDURE [dbo].[bf_jiaofuma_sq]
@Fac varchar(50) output,
@username varchar(100),
@duanxin varchar(100),
@ls_no varchar(50)
AS
begin
declare @jfm int
exec @jfm=cs_jiaofuma;1 @Fac output,@username,@duanxin,@ls_no,'123',''//执行了另一个带输出参数的存储过程
if(@jfm<>0)
begin
declare @cwxx varchar(50)
select @cwxx=dbo.[bf_fanhuicuowu](@jfm)
raiserror(@cwxx,16,1)
return(1)
end
else
begin
update dbo.tcon set bf_code=@Fac where Ls_no=@ls_no//这行是重点。
end
end
本人十分确定在这个存储过程体外调用@FactorCode 是有值得,但是
update dbo.tcon set bf_code=@Fac where Ls_no=@ls_no执行后,这句bf_code却没有修改