SELECT stuff((select ',' + PUD_Dept from PB_User_Dept t where PUD_User = PUB_ID for xml path('')) , 1 , 1 , '') 
  FROM [dbo].[PB_User_Base]

 

posted on 2018-09-17 16:48  梦回过去  阅读(294)  评论(0编辑  收藏  举报