Re: Specifying text to substitute for NULLs in selects

From: Ivan Sergio Borgonovo <mail(at)webthatworks(dot)it>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Specifying text to substitute for NULLs in selects
Date: 2008-11-08 00:23:29
Message-ID: 20081108012329.728631b7@dawn.webthatworks.it
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Sat, 08 Nov 2008 13:05:08 +1300
"Brent Wood" <b(dot)wood(at)niwa(dot)co(dot)nz> wrote:

> Thanks guys,
>
> I'm aware of those options, what I was wondering was if there is a
> more generic way, for example the Empress RDBMS allows 'set
> MSNULLVALUE "NA"', and all NULLs will from then on be output as NA.
>
> The COPY option is closest to a generic setting, but doesn't work
> with a select query, just a table dump.

\copy (select ....) to ...
works.

As written in my 2nd post.

--
Ivan Sergio Borgonovo
http://www.webthatworks.it

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Adrian Klaver 2008-11-08 00:42:58 Re: Specifying text to substitute for NULLs in selects
Previous Message Brent Wood 2008-11-08 00:05:08 Re: Specifying text to substitute for NULLs in selects