)
AS
SET @iSuccess='repairName'
begin tran
if @@error<>0
begin
return
end
commit tran
GO
...全文
1003打赏收藏
存储过程返回的字符串丢失
我在存储过程中,给一个output变量赋值,为何每次仅获取第一个字母。 存储过程如下: CREATE PROCEDURE [dbo].[upRepairBill] ( @iSuccess NVarChar output, ) AS SET @iSuccess='repairName' begin tran if @@error0 begin return end commit tran GO