If else in stored procedure sql server

后端 未结 8 1804
孤街浪徒
孤街浪徒 2021-02-02 07:19

I have created a stored procedure as follow:

Create Procedure sp_ADD_USER_EXTRANET_CLIENT_INDEX_PHY
(
@ParLngId int output
)
as
Begin
    SET @ParLngId = (Select         


        
8条回答
  •  你的背包
    2021-02-02 07:41

    You do not have to have the RETURN stament.

    Have anther look at Using a Stored Procedure with Output Parameters

    Also have another look at the OUT section in CREATE PROCEDURE

提交回复
热议问题