T-SQL查询: PIVOT/UNPIVOT 逻辑操做步骤

--【PIVOT】 USE tempdb GO -- DROP TABLE #test CREATE TABLE #test(Empid int,Oderyear varchar(4),val numeric(18,2)) INSERT INTO #test(Empid,Oderyear,val) VALUES (1,'2012',156823), (1,'2013',256833.5
相关文章
相关标签/搜索