Re: Specifying text to substitute for NULLs in selects - Mailing list pgsql-general

From Ivan Sergio Borgonovo
Subject Re: Specifying text to substitute for NULLs in selects
Date
Msg-id 20081108012329.728631b7@dawn.webthatworks.it
Whole thread Raw
In response to Re: Specifying text to substitute for NULLs in selects  ("Brent Wood" <b.wood@niwa.co.nz>)
List pgsql-general
On Sat, 08 Nov 2008 13:05:08 +1300
"Brent Wood" <b.wood@niwa.co.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


pgsql-general by date:

Previous
From: "Brent Wood"
Date:
Subject: Re: Specifying text to substitute for NULLs in selects
Next
From: Adrian Klaver
Date:
Subject: Re: Specifying text to substitute for NULLs in selects