Re: Concatenation containing a "null" term

Поиск
Список
Период
Сортировка
От Pierre Thibaudeau
Тема Re: Concatenation containing a "null" term
Дата
Msg-id 74b035bb0605281943l44a1ec7bx43b740dd672faed9@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Concatenation containing a "null" term  (Michael Fuhr <mike@fuhr.org>)
Список 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 по дате отправления:

Предыдущее
От: Michael Fuhr
Дата:
Сообщение: Re: Concatenation containing a "null" term
Следующее
От: Russell Davie
Дата:
Сообщение: changing user id