Mysql
 sql >> Datenbank >  >> RDS >> Mysql

Unpivot-Tabelle in MySQL

Sie können union all verwenden

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