Re: Turning column into row
От | Joel Burton |
---|---|
Тема | Re: Turning column into row |
Дата | |
Msg-id | JGEPJNMCKODMDHGOBKDNCEAFCPAA.joel@joelburton.com обсуждение исходный текст |
Ответ на | Re: Turning column into row (Oliver Elphick <olly@lfix.co.uk>) |
Ответы |
Re: Turning column into row
|
Список | pgsql-sql |
> -----Original Message----- > From: pgsql-sql-owner@postgresql.org > [mailto:pgsql-sql-owner@postgresql.org]On Behalf Of Oliver Elphick > Sent: Wednesday, May 22, 2002 5:57 AM > To: Tille, Andreas > Cc: PostgreSQL SQL > Subject: Re: [SQL] Turning column into row > > > On Wed, 2002-05-22 at 08:35, Tille, Andreas wrote: > > > > So I have to turn the different properties according to one item into > > one field insead of one column. > > > > How to do this sanely? > > > Use Perl? > > According to Joe Celko's book, SQL For Smarties, Sybase provides a > LIST() aggregate function that does this. But I don't know of anything > in PostgreSQL. http://www.brasileiro.net/postgres/cookbook/view-one-recipe.adp?recipe_id=13 9 will do as a LIST() replacement. - J
В списке pgsql-sql по дате отправления: