GreenGrass

create PROCEDURE [dbo].[up_AccountItemEdit]

@AccountGuid uniqueidentifier,

@AccountCategory varchar(50),

@AccountName varchar(50),

@AccountFSCode varchar(50),

@DICGuid uniqueidentifier,

@IsObsoleted bit

AS

IF(EXISTS(SELECT 1 FROM T_AccountItem trm WHERE trm.AccountGuid=@AccountGuid))

BEGIN UPDATE T_AccountItem SET AccountCategory=@AccountCategory, AccountName=@AccountName, AccountFSCode=@AccountFSCode, DICGuid=@DICGuid, IsObsoleted=@IsObsoleted WHERE AccountGuid=@AccountGuid END

ELSE

BEGIN INSERT INTO T_AccountItem ( AccountGuid, AccountCategory, AccountName, AccountFSCode, DICGuid, IsObsoleted ) VALUES ( @AccountGuid, @AccountCategory, @AccountName, @AccountFSCode, @DICGuid, @IsObsoleted ) END

分类:

技术点:

相关文章:

  • 2022-12-23
  • 2021-04-10
  • 2021-10-31
  • 2021-04-06
  • 2022-12-23
  • 2021-11-13
  • 2022-12-23
  • 2022-01-10
猜你喜欢
  • 2021-07-15
  • 2022-12-23
  • 2021-08-15
  • 2022-12-23
  • 2021-08-26
  • 2021-09-10
  • 2022-12-23
相关资源
相似解决方案