pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tibor Laszlo <ltibor@mail.tiszanet.hu>
To: Karl Raven <lcaasia@pd.jaring.my>
To: pgsql-sql@postgresql.org
Subject: Re: change null to 0 in SQL script
Date: Thu, 3 Jan 2002 16:45:38 +0100
Message-ID: <NFBBJBAOELFIEKMDJAFFMEBMCDAA.ltibor@mail.tiszanet.hu> (raw)
In-Reply-To: <a10ojd$1v4q$1@news.tht.net>

> I like to change a null value of a query to 0

The coalesce(something, 0) returns 0 if something is null, else returns
something.


Tibor Laszlo
ltibor@mail.tiszanet.hu




view thread (6+ messages)  latest in thread

Message-ID: <NFBBJBAOELFIEKMDJAFFMEBMCDAA.ltibor@mail.tiszanet.hu>
Permalink:  ../NFBBJBAOELFIEKMDJAFFMEBMCDAA.ltibor@mail.tiszanet.hu/
Also on:    postgresql.org/message-id/NFBBJBAOELFIEKMDJAFFMEBMCDAA.ltibor@mail.tiszanet.hu

 · 

reply

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-sql@postgresql.org
  Cc: ltibor@mail.tiszanet.hu, lcaasia@pd.jaring.my
  Subject: Re: change null to 0 in SQL script
  In-Reply-To: <NFBBJBAOELFIEKMDJAFFMEBMCDAA.ltibor@mail.tiszanet.hu>

* 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