2013年3月20日

列转行?

摘要: 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)

pivot 使用

摘要: pivot 使用 阅读全文

posted @ 2013-03-20 14:25 习惯简单 阅读(193) 评论(0) 推荐(0)

cross apply 应用

摘要: cross apply 阅读全文

posted @ 2013-03-20 14:20 习惯简单 阅读(170) 评论(0) 推荐(0)

导航