SELECT distinct TEMP.vch_number,TEMP.vch_code,
vch_name=stuff((select ';'+vch_name from TABLEB where (vch_number=TEMP.vch_number and vch_name<>'' ) for xml path('')),1,1,'')
FROM #TBL_READ_NUMBER TEMP

 

相关文章:

  • 2022-02-13
  • 2022-01-25
  • 2022-02-28
  • 2021-08-26
  • 2022-12-23
  • 2021-10-08
  • 2022-12-23
  • 2021-07-10
猜你喜欢
  • 2021-10-22
  • 2021-07-14
  • 2022-01-29
  • 2022-12-23
  • 2021-08-06
  • 2021-09-29
相关资源
相似解决方案