create function [dbo].[mergeName](@Id bigint) returns nvarchar(500)
    as
    begin
    declare @str nvarchar(500)
    set @str = ''
    select @str = @str + ',' + cast(CompanyUserName as nvarchar(500)) + cast(Mobile as nvarchar(500)) from   dbo.CRMCompanyUser where Id in 
            ( select companyUserId from dbo.CRMSalesRecruitmentJoinCompanyContact  where  SalesRequirementId=@Id )
     if(len(@str)>1)
     set @str = right(@str , len(@str) - 1)
    return @str
    end

相关文章:

  • 2022-12-23
  • 2021-10-14
  • 2021-07-20
  • 2022-12-23
  • 2022-03-08
  • 2022-12-23
  • 2021-09-11
猜你喜欢
  • 2021-09-09
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-25
  • 2022-12-23
相关资源
相似解决方案