lxy2 回复 用户k6280494(提问者)我试了是可以的啊,你把a换成你自己的数据集with a as(
select 6 as sl1,7 as sl2,\'店铺数量\' as ttype
union all
select 26 as sl1,27 as sl2,\'店铺数量\' as ttype
union all
select 16 as sl1,71 as sl2,\'招牌长度\' as ttype
union all
select 60 as sl1,17 as sl2,\'招牌长度\' as ttype
)
select * from a
unpivot( score for ttype1 in (sl1,sl2))b