select a.* from (select id,Detail,partId=(select cast(partId as char(36))+',' from (select * from table) as b where b.id=a.id for xml path(''))

,code

from table a

group by id,Detail,code) a

相关文章:

  • 2022-12-23
  • 2021-08-31
  • 2021-06-01
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-02-28
  • 2021-10-04
  • 2021-10-22
  • 2022-12-23
  • 2021-10-13
  • 2022-02-18
相关资源
相似解决方案