Is there a way to replace select * fields in result ?

From: Condor <condor(at)stz-bg(dot)com>
To: pgsql-general <pgsql-general(at)lists(dot)postgresql(dot)org>
Subject: Is there a way to replace select * fields in result ?
Date: 2021-06-12 08:00:34
Message-ID: 37a2bc0c7c8e90ea7620297e8d23515a@stz-bg.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general


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

Responses

Browse pgsql-general by date

  From Date Subject
Next Message David G. Johnston 2021-06-12 08:13:04 Re: Is there a way to replace select * fields in result ?
Previous Message Jehan-Guillaume de Rorthais 2021-06-12 07:03:05 Re: bottom / top posting