摘要:
-------------参考----------------------------假设我们有如下数据表------菜系表--------------店名 菜系--------澳门豆捞 川菜 --澳门豆捞 粤菜 --澳门豆捞 闽菜 --为民大酒店 鲁菜 --为民大酒店 粤菜 --为民大酒店 川菜------------------------------执行如下语句select 店名,菜系=STUFF((select','+ltrim(菜系) from 菜系表 where 店名=t.店名 for XML path('')),1,1,'')fro 阅读全文
posted @ 2012-04-24 20:22
poisson_notes
阅读(424)
评论(0)
推荐(0)