sql server 2008 存储过程中调用别的存储过程带输出参数问题
ALTERPROCEDURE[dbo].[SIP10103]@KOUJO_CDASINT,@YLMASTERASVARCHAR(50),@HAIGO_DTASINTASB...
ALTER PROCEDURE [dbo].[SIP10103]
@KOUJO_CD AS INT,
@YLMASTER AS VARCHAR(50),
@HAIGO_DT AS INT
AS
BEGIN
DECLARE @CNT AS INT
DECLARE @RET_NO AS INT
SET @CNT=(SELECT COUNT(*)FROM #W4)
EXEC SPDB..SIP10104 @HAIGO_DT,@CNT,@RET_NO OUTPUT
RETURN @RET_NO
输出参数为 @RET_NO
调用的存储过程SIP10104 为
ALTER PROC [dbo].[SIP10104]
@HAIGO_DT INT,
@CNT INT,
@RET_NO INT OUTPUT AS
想请教一下我这么写对么,能返回输出参数的值么 展开
@KOUJO_CD AS INT,
@YLMASTER AS VARCHAR(50),
@HAIGO_DT AS INT
AS
BEGIN
DECLARE @CNT AS INT
DECLARE @RET_NO AS INT
SET @CNT=(SELECT COUNT(*)FROM #W4)
EXEC SPDB..SIP10104 @HAIGO_DT,@CNT,@RET_NO OUTPUT
RETURN @RET_NO
输出参数为 @RET_NO
调用的存储过程SIP10104 为
ALTER PROC [dbo].[SIP10104]
@HAIGO_DT INT,
@CNT INT,
@RET_NO INT OUTPUT AS
想请教一下我这么写对么,能返回输出参数的值么 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询