Re: Concatenation containing a "null" term

From: Michael Fuhr <mike(at)fuhr(dot)org>
To: Pierre Thibaudeau <pierdeux(at)gmail(dot)com>
Cc: pgsql-novice(at)postgresql(dot)org
Subject: Re: Concatenation containing a "null" term
Date: 2006-05-28 21:33:37
Message-ID: 20060528213337.GA73207@winnie.fuhr.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

On Sun, May 28, 2006 at 05:17:12PM -0400, Pierre Thibaudeau wrote:
> Is there a way of having the null-strings terms of the concatenation
> operator be considered as empty strings instead?

Use COALESCE. Some people create a custom concatenation operator
that automatically does so.

http://www.postgresql.org/docs/8.1/interactive/functions-conditional.html#AEN12639
http://www.postgresql.org/docs/8.1/interactive/sql-createoperator.html

--
Michael Fuhr

In response to

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message Pierre Thibaudeau 2006-05-29 02:43:50 Re: Concatenation containing a "null" term
Previous Message Pierre Thibaudeau 2006-05-28 21:17:12 Concatenation containing a "null" term