可否把存储过程的执行结果赋给一个临时变量
createPROCEDUREalterCmanageInfoCRepay(@Ridchar(10),@Cnumchar(10))ASdeclare@tempmoneys...
create PROCEDURE alterCmanageInfoCRepay
(@Rid char(10),
@Cnum char(10)
)
AS
declare
@temp money
set @temp= (exec selectRprice @Rid)
UPDATE Cmanage
SET CRepay=@temp + CRepay
WHERE Rid=@Rid and Cnum=@Cnum这段代码中把存储过程的执行结果赋给一个临时变量 怎么改才正确
SET CRepay=@temp + CRepay 这句有问题吗? 展开
(@Rid char(10),
@Cnum char(10)
)
AS
declare
@temp money
set @temp= (exec selectRprice @Rid)
UPDATE Cmanage
SET CRepay=@temp + CRepay
WHERE Rid=@Rid and Cnum=@Cnum这段代码中把存储过程的执行结果赋给一个临时变量 怎么改才正确
SET CRepay=@temp + CRepay 这句有问题吗? 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询