I have a MySQL table of three columns:
id | name | value
-------------------------
1 | name1 | true
2 | name2 | 3
... | ... | ...
100 | name100 | foo
There is no repeats in name
column.
How can I build a Select query in MySQL, to have the second column as column names, and third column as a row:
name1 | name2 | ... | name100
----------------------------------
true | 3 | ... | foo