Mysql
 sql >> Database >  >> RDS >> Mysql

Unpivot tabella in MySQL

Puoi usare union all

select FirstName, LastName,query1, result1 from unpivot_table
union all
select FirstName, LastName,query2, result2 from unpivot_table
union all
select FirstName, LastName,query3, result3 from unpivot_table
union all
select FirstName, LastName,query4, result4 from unpivot_table