insert into table result_table select Id, v1 as value from orig_table;
insert into table result_table select Id, v2 as value from orig_table;
insert into table result_table select Id, v3 as value from orig_table;
select Id,value from result_table;
或者
select Id, value
from orig_table LATERAL VIEW explode(array(v1,v2,v3)) orig_table_alias AS value;
2条答案
按热度按时间li9yvcax1#
icnyk63a2#
或者