一,行转列 先建立测试数据 if OBJECT_ID('week_income') is not null drop table week_income go create table week_income ( employee varchar(10), weekname varchar(10), income int ) go insert into week_income select '張三','星期一',1000 union all select '張三','星期二',2000 uni