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