列转行?
摘要:
select top 10 orderid,stuff((select ','+product_no from orderdetail where o.orderid=orderid group by orderid,product_no for xml path('')),1,1,'')from orderdetail o group by orderid 阅读全文
posted @ 2013-03-20 14:28 习惯简单 阅读(95) 评论(0) 推荐(0)
浙公网安备 33010602011771号