Re: SQL Query Syntax help - Mailing list pgsql-general

From Jan Kohnert
Subject Re: SQL Query Syntax help
Date
Msg-id 3590239.kQq0lBPeGt@kohnert-n4
Whole thread Raw
Responses Re: SQL Query Syntax help
List pgsql-general
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





pgsql-general by date:

Previous
From: Tanja Savic
Date:
Subject: PostgresSQL 10 on remote server - Socket is not connected(0x00002749/10057)
Next
From: Олег Самойлов
Date:
Subject: PgQ and NOTIFY/LISTEN