首页 > TAG信息列表 > IncomeDay

sql中pivot函数(行转列),unpivot(列转行)

1、create table DailyIncome(VendorId nvarchar(50), IncomeDay nvarchar(50), IncomeAmount int,FacName nvarchar(50))2、插入数据 insert into DailyIncome values ('SPIKE', 'FRI', 100,'mixue')insert into DailyIncome values ('SPIKE�