From: Condor <condor@stz-bg.com>
To: pgsql-general <pgsql-general@lists.postgresql.org>
Subject: Is there a way to replace select * fields in result ?
Date: Sat, 12 Jun 2021 11:00:34 +0300
Message-ID: <37a2bc0c7c8e90ea7620297e8d23515a@stz-bg.com> (raw)
Hello,
Is there a way to replace select * fileds in result ?
I have select qw.* from table but I want field for example mm to be
replaced with custom value like:
select qw.*, case whem length(qw.mm) > 0 THEN COALESCE(SUBSTRING(qw.mm,
1, 1), '') ELSE qw.mm END AS qw.mm
Is there some way to do that ?
Regards,
HS
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-general@postgresql.org
Cc: condor@stz-bg.com
Subject: Re: Is there a way to replace select * fields in result ?
In-Reply-To: <37a2bc0c7c8e90ea7620297e8d23515a@stz-bg.com>
References: <37a2bc0c7c8e90ea7620297e8d23515a@stz-bg.com>
* 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