文章详情

  • 游戏榜单
  • 软件榜单
关闭导航
热搜榜
热门下载
热门标签
php爱好者> php文档>stuff

stuff

时间:2011-04-08  来源:如歌

按CategoryID分组并排序,Names为相同的CategoryID的PropertyXngName以‘,’连接

select t.CategoryID,Names = stuff((select ',' +c.PropertyXngName from [develop].[dbo].[Xng_Properties] c where t.CategoryID = c.CategoryID for XML path('')) , 1 , 1 , '') from [develop].[dbo].[Xng_Properties] t Group by t.CategoryID order by t.CategoryID

相关阅读 更多 +
排行榜 更多 +
瓢虫少女

瓢虫少女

飞行射击 下载
潜艇鱼雷

潜艇鱼雷

飞行射击 下载
网络掠夺者

网络掠夺者

飞行射击 下载