Re: Can I trigger an action from a coalesce ?

From: "Peter J(dot) Holzer" <hjp-pgsql(at)hjp(dot)at>
To: pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Re: Can I trigger an action from a coalesce ?
Date: 2020-02-24 09:24:45
Message-ID: 20200224092445.GA22700@hjp.at
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 2020-02-24 05:20:49 +0000, sivapostgres(at)yahoo(dot)com wrote:
> It could also be done by putting those values in square bracket, if substituted
> with default values.
> eg. [0]
> 4
> 45
> [100]
> Values within square brackets are default values.

This would also work in many cases (especially if the values only have
to be displayed and not processed further).

In this case the OP wrote that "the default value is reasonable and
could actually come from the source table". I assumed that he had a
reason for this choice and wanted to preserve it.

hp

--
_ | Peter J. Holzer | Story must make more sense than reality.
|_|_) | |
| | | hjp(at)hjp(dot)at | -- Charles Stross, "Creative writing
__/ | http://www.hjp.at/ | challenge!"

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Nick Renders 2020-02-24 12:48:18 Re: Postgres 12.1 : UPPER() in WHERE clause restarts server
Previous Message Dor Ben Dov 2020-02-24 08:18:23 Backup & Restore