标签:-- query span toc int nbsp des output encrypt
1 USE QPClub 2 GO 3 4 IF EXISTS (SELECT * FROM DBO.SYSOBJECTS WHERE ID = OBJECT_ID(N‘[dbo].[GSP_GR_Query_Profit_Info]‘) and OBJECTPROPERTY(ID, N‘IsProcedure‘) = 1) 5 DROP PROCEDURE [dbo].[GSP_GR_Query_Profit_Info] 6 GO 7 8 CREATE PROCEDURE dbo.GSP_GR_Query_Profit_Info 9 @wClubID INT, -- 俱乐部ID 10 @wUserID INT, -- UserID 11 @strErrorDescribe NVARCHAR(127) OUTPUT -- 输出信息 12 WITH ENCRYPTION AS 13 14 -- 设置属性 15 SET NOCOUNT ON 16 17 -- 执行逻辑 18 BEGIN 19 20 IF NOT EXISTS (SELECT UserID FROM QPClub.dbo.UserBelongToClub WHERE ClubID=@wClubID) 21 BEGIN 22 SET @strErrorDescribe=N‘俱乐部中没有该玩家‘ 23 RETURN 1 24 END 25 IF NOT EXISTS (SELECT * FROM QPClub.dbo.AgentyTichengType WHERE AgencyID=@wUserID) 26 BEGIN 27 SET @strErrorDescribe=N‘没有该玩家收益信息‘ 28 RETURN 2 29 END 30 SELECT * 31 FROM AgentyTichengType 32 WHERE AgencyID=@wUserID 33 34 END 35 RETURN 0
标签:-- query span toc int nbsp des output encrypt
原文地址:https://www.cnblogs.com/chzh999/p/9418416.html