Mysql
 sql >> Base de données >  >> RDS >> Mysql

Tableau non croisé dynamique dans MySQL

Vous pouvez utiliser 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