DELPHI與.Net

程序開發中......... [注明:该Blog中的信息都并非原创,只是作为个人的阅读笔记]

SQL分组查询

https://www.cnblogs.com/friday69/p/9389720.html Sql Server中实现Mysql中的group_concat函数效果 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 2020-01-04 11:26  人淡如菊  阅读(428)  评论(0编辑  收藏  举报

导航