Richard Carlier <[EMAIL PROTECTED]> wrote:
> Bonjour,
> 
> "Horizontal" is not the word but I don't know how to explain... and by
> extension how to find in archive of list...
> 
> Maybe an example ?
> 
> I have this
>     +-------+-------+
>     | a     | b     |
>     +-------+-------+
>     |     1 |     1 |
>     |     1 |     2 |
>     |     1 |     3 |
>     |     2 |     1 |
>     |     2 |     2 |
>     |     3 |     1 |
>     +-------+-------+
> 
> Their is any why to obtain something like that :
>     +-------+--------+
>     | a     | b      |
>     +-------+--------+
>     |     1 | 1,2,3  |
>     |     2 | 1,2    |
>     |     3 | 1      |
>     +-------+--------+
> 
> Based on a group by or something...

There is GROUP_CONCAT() function:
        http://www.mysql.com/doc/en/GROUP-BY-Functions.html

But it's supported from version 4.1.


-- 
For technical support contracts, goto https://order.mysql.com/?ref=ensita
This email is sponsored by Ensita.net http://www.ensita.net/
   __  ___     ___ ____  __
  /  |/  /_ __/ __/ __ \/ /    Victoria Reznichenko
 / /|_/ / // /\ \/ /_/ / /__   [EMAIL PROTECTED]
/_/  /_/\_, /___/\___\_\___/   MySQL AB / Ensita.net
       <___/   www.mysql.com





-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:    http://lists.mysql.com/[EMAIL PROTECTED]

Reply via email to