Re: Concatenation containing a "null" term - Mailing list pgsql-novice

From Pierre Thibaudeau
Subject Re: Concatenation containing a "null" term
Date
Msg-id 74b035bb0605281943l44a1ec7bx43b740dd672faed9@mail.gmail.com
Whole thread Raw
In response to Re: Concatenation containing a "null" term  (Michael Fuhr <mike@fuhr.org>)
List 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! 

pgsql-novice by date:

Previous
From: Michael Fuhr
Date:
Subject: Re: Concatenation containing a "null" term
Next
From: Russell Davie
Date:
Subject: changing user id