我有一个问题:
select * from (
select
ab_id, abc_metric, abc_value from TABLE1)
PIVOT(
min(abc_value)
FOR abc_metric IN ('Catalog','Fruit Type')); -- I have 50 such columns
这将生成一个表:
ab_id 'Catalog' 'Fruit Type'
1 a b
2 c d
我希望表中的列不带引号,并用_
分隔
ab_id catalog fruit_type
1 a b
2 c d
有没有办法做到这一点?
https://stackoverflow.com/questions/57134987
复制相似问题