concatenating with NULLs - Mailing list pgsql-general

From Seb
Subject concatenating with NULLs
Date
Msg-id 87vcy2qbkw.fsf@kolob.sebmags.homelinux.org
Whole thread Raw
Responses Re: concatenating with NULLs
Re: concatenating with NULLs
List pgsql-general
Hi,

A query such as:

SELECT 'a' || 'b' || NULL;

returns a NULL.  How can I ensure I get 'ab' in the result?  I'm trying
to concatenate columns and one of them might have NULL values, which I
simply want to ignore.

Cheers,

--
Seb

pgsql-general by date:

Previous
From: Shashank Tripathi
Date:
Subject: Re: Help - corruption issue?
Next
From: Bosco Rama
Date:
Subject: Re: concatenating with NULLs