Re: NULLS and string concatenation

Поиск
Список
Период
Сортировка
От Michael Fuhr
Тема Re: NULLS and string concatenation
Дата
Msg-id 20041119175333.GA42361@winnie.fuhr.org
обсуждение исходный текст
Ответ на Re: NULLS and string concatenation  (Bruno Wolff III <bruno@wolff.to>)
Список pgsql-sql
On Fri, Nov 19, 2004 at 11:45:43AM -0600, Bruno Wolff III wrote:
> On Fri, Nov 19, 2004 at 11:12:38 -0600, Don Drake <dondrake@gmail.com> wrote:
> > 
> > I was able to work around the problem by using COALESCE (and casting
> > variables since it wants the same data types passed to it).
> 
> This is what you should do.

If you don't mind using a non-standard feature, another possibility
would be to create an operator similar to || that COALESCEs NULLs
into empty strings.

-- 
Michael Fuhr
http://www.fuhr.org/~mfuhr/


В списке pgsql-sql по дате отправления:

Предыдущее
От: Richard Huxton
Дата:
Сообщение: Re: NULLS and string concatenation
Следующее
От: Don Drake
Дата:
Сообщение: Re: NULLS and string concatenation