摘要: http://technet.microsoft.com/zh-cn/library/ms177410.aspxunpivot :CREATE TABLE pvt (VendorID int, Emp1 int, Emp2 int, Emp3 int, Emp4 int, Emp5 int);GOINSERT INTO pvt VALUES (1,4,3,5,4,4);INSERT INTO pvt VALUES (2,4,1,5,5,5);INSERT INTO pvt VALUES (3,4,3,5,4,4);INSERT INTO pvt VALUES (4,4,2,5,5,4);INS 阅读全文
posted @ 2014-01-13 11:00 pengbg 阅读(595) 评论(0) 推荐(0) 编辑