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  ("Tille, Andreas" <TilleA@rki.de>)
Список 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 по дате отправления:

Предыдущее
От: "Tille, Andreas"
Дата:
Сообщение: Re: Turning column into row
Следующее
От: "Joel Burton"
Дата:
Сообщение: Re: Turning column into row