declare @result varchar(255)
set @result = ”
select @result = @result + cast(F_IT_FWID as varchar(255)) +‘,’
from [TJFX].[dbo].[TB_JG_SJTJFXB201412]
where F_IT_FWLX=1
select left(@result,len(@result) – 1) as fwid
2021-09-26 23:47:50
declare @result varchar(255)
set @result = ”
select @result = @result + cast(F_IT_FWID as varchar(255)) +‘,’
from [TJFX].[dbo].[TB_JG_SJTJFXB201412]
where F_IT_FWLX=1
select left(@result,len(@result) – 1) as fwid