declare @t table (Id int, Value char(5))
insert into @t
select '1','09:01' union
select '1','12:05' union
select '2','08:04' union
select '2','17:09' union
select '3','99888'

select * from @t
select id,stuff((select ','+rtrim(value)
from @t
where id=a.id for xml path('')
),1,1,'') as [values]
from (select distinct id from @t) a

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-08-02
  • 2021-11-08
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-13
  • 2021-08-07
  • 2022-12-23
相关资源
相似解决方案