From: Tille, Andreas <TilleA@rki.de>
To: PostgreSQL SQL <pgsql-sql@postgresql.org>
Subject: Re: Turning column into row
Date: Wed, 22 May 2002 12:28:31 +0200 (CEST)
Message-ID: <Pine.LNX.4.44.0205221202530.8932-100000@wr-linux02.rki.ivbb.bund.de> (raw)
In-Reply-To: <1022061408.1400.1042.camel@linda>
On Wed, 22 May 2002, Oliver Elphick wrote:
> Use Perl?
Well, I just started to write a Python script, but it showes to
make some effort to accomplish the same I did in a simple shell script
before. I use an intermediate output using some PostgreSQL functions
and CASE statements to get a raw ASCII output which was formatted
quite nicely for this purpose by a single SELECT statement into
a proper sized table. It would cost a fair amount of Perl/Python/Whatever
code to do the same.
I know that this is a problem which is quite hard in plain SQL but
I've thought I could do some magic using plpgsql-FUNCTIONS but I
failed to solve it.
Kind regards
Andreas.
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-sql@postgresql.org
Cc: TilleA@rki.de
Subject: Re: Turning column into row
In-Reply-To: <Pine.LNX.4.44.0205221202530.8932-100000@wr-linux02.rki.ivbb.bund.de>
References: <1022061408.1400.1042.camel@linda> <Pine.LNX.4.44.0205221202530.8932-100000@wr-linux02.rki.ivbb.bund.de>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox