XIAO-BAI

ALTER view [dbo].[view_weiswysjl]
as
select distinct m.dbid,m.baogbh,m.chanpmc,m.jianymdyq,m.weitrq,(\',\'+s.jjy+\',\') as jjy from mainexam m inner join
(select baogbh,STUFF( (SELECT \',\'+jjy from secexam s2 WHERE s1.baogbh=s2.baogbh FOR XML PATH(\'\')),1,1,\'\') jjy from secexam s1 ) s
on m.baogbh=s.baogbh
 where dbstatus>0 and dbstatus!=9
GO

 

分类:

技术点:

相关文章:

  • 2021-12-08
  • 2022-12-23
  • 2022-12-23
  • 2022-01-15
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-05
猜你喜欢
  • 2022-12-23
  • 2022-03-07
  • 2021-08-16
  • 2021-11-29
  • 2022-12-23
相关资源
相似解决方案