update QGJVector..ProjectVector 
set Tag=c.subennmcd 
from QGJVector ..ProjectVector
Left join 
(select distinct pennmcd ,
STUFF ( 
      (select replace('$'+branchennmcd,' ','') from gq_ok ..[0510_swinfo] where pennmcd =a.pennmcd for XML path('') 
      )
          ,1,1,'') as subennmcd
from gq_ok ..[0510_swinfo] a )c
on c.pennmcd=QGJVector ..ProjectVector.Code 

 

相关文章:

  • 2022-01-23
  • 2021-07-14
  • 2022-01-21
  • 2022-02-05
  • 2022-02-01
  • 2022-02-08
猜你喜欢
  • 2022-12-23
  • 2022-03-03
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案