From: Jan Kohnert <nospam001-lists@jan-kohnert.de>
To: pgsql-general@lists.postgresql.org
Subject: Re: SQL Query Syntax help
Date: Wed, 22 Jan 2020 12:41:32 +0100
Message-ID: <3590239.kQq0lBPeGt@kohnert-n4> (raw)
In-Reply-To: <20200122110045.14705.qmail@f4mail-235-235.rediffmail.com>
References: <20200122110045.14705.qmail@f4mail-235-235.rediffmail.com>
Hi,
Am Mittwoch, 22. Januar 2020, 12:00:45 CET schrieb srikkanth:
[sniped HTML]
something like
select
id, 'Col A' as "Col Name", "Col A" as "Col Value"
from input
union all
select
id, 'Col B' as "Col Name", "Col B" as "Col Value"
from input
...
order by
1, 2;
should work.
--
Kind regards Jan
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 using the --to and --cc options:
reply via email
To: pgsql-admin@postgresql.org
Cc: nospam001-lists@jan-kohnert.de, pgsql-general@lists.postgresql.org
Subject: Re: SQL Query Syntax help
In-Reply-To: <3590239.kQq0lBPeGt@kohnert-n4>
* 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