create table #test
(
id  int not null,
memeo int not null
)


insert into #test(id,memeo) values(1,100)
insert into #test(id,memeo) values(2,200)
insert into #test(id,memeo) values(3,300)

 
 SELECT STUFF((SELECT ','+cast(memeo as nvarchar(20)) 
 FROM #test for xml path('')),1,1,'')

drop table  #test
View Code

相关文章:

  • 2022-01-04
  • 2022-12-23
  • 2021-11-28
  • 2022-12-23
  • 2022-12-23
  • 2021-12-09
  • 2022-02-09
猜你喜欢
  • 2022-01-18
  • 2022-12-23
  • 2021-09-22
  • 2022-12-23
  • 2022-12-23
  • 2021-07-06
  • 2022-12-23
相关资源
相似解决方案