Re: Concatenation containing a "null" term

From: "Pierre Thibaudeau" <pierdeux(at)gmail(dot)com>
To: "Michael Fuhr" <mike(at)fuhr(dot)org>
Cc: pgsql-novice(at)postgresql(dot)org
Subject: Re: Concatenation containing a "null" term
Date: 2006-05-29 02:43:50
Message-ID: 74b035bb0605281943l44a1ec7bx43b740dd672faed9@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

>
> > 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
>

Simple, swift and bang on target! Thank you!

In response to

Browse pgsql-novice by date

  From Date Subject
Next Message Russell Davie 2006-05-29 21:41:53 changing user id
Previous Message Michael Fuhr 2006-05-28 21:33:37 Re: Concatenation containing a "null" term