Re: Un sous jeu par jeu

From: Guillaume Lelarge <guillaume(at)lelarge(dot)info>
To: pgsql-fr-generale(at)postgresql(dot)org
Cc: Gautier Di Folco <xgx26xdf(at)hotmail(dot)com>
Subject: Re: Un sous jeu par jeu
Date: 2009-04-18 10:58:49
Message-ID: 200904181258.49633.guillaume@lelarge.info
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-fr-generale

Le samedi 18 avril 2009 à 11:53:40, Gautier Di Folco a écrit :
> [...]
> PPS : j'ai tenté array_to_tring mais ça n'a pas marché :/
>

Si, si, ça marche :

select
titre,
message,
(select array_to_string(array(
select pk_auteur from auteurs where fk_article=pk_article
), ', ')) as auteurs
from articles ;

--
Guillaume.
http://www.postgresqlfr.org
http://dalibo.com

In response to

Responses

Browse pgsql-fr-generale by date

  From Date Subject
Next Message Gautier Di Folco 2009-04-18 12:29:55 RE: [pgsql-fr-generale] [Résolu] Un sous jeu par jeu
Previous Message Christophe Chauvet 2009-04-18 10:10:13 Re: Un sous jeu par jeu