Convert column to row [duplicate]

3

This is the select of my table, the query I'm using follows in the image below:

It brings the normal result, but I wanted it to bring it this way:

| Id_Unica | Pixel | Inch | Quantity | 18 1080p 15 2

Can it be personal?

Select Current:

SELECT id, id_unica, parametro, descricao, produto FROM inventario WHERE produto='Monitor' GROUP BY parametro ORDER BY parametro ASC;
    
asked by anonymous 13.11.2014 / 14:17

1 answer

0

Try using the following:

SELECT id + id_unica + parametro + descricao + produto 
FROM inventario 
WHERE produto='Monitor' 
GROUP BY parametro 
ORDER BY parametro ASC;

If the + sign does not work in MySQL, try the pipe "||" should work.

    
13.11.2014 / 18:55