日期:2014-05-16 浏览次数:20515 次
select [year], max(case when [month]=1 then [no] else null end) m1, max(case when [month]=2 then [no] else null end) m2, max(case when [month]=3 then [no] else null end) m3 from 表 group by [year]