concatenating with NULLs

Поиск
Список
Период
Сортировка
От Seb
Тема concatenating with NULLs
Дата
Msg-id 87vcy2qbkw.fsf@kolob.sebmags.homelinux.org
обсуждение исходный текст
Ответы Re: concatenating with NULLs  (Bosco Rama <postgres@boscorama.com>)
Re: concatenating with NULLs  (Glen Parker <glenebob@nwlink.com>)
Список pgsql-general
Hi,

A query such as:

SELECT 'a' || 'b' || NULL;

returns a NULL.  How can I ensure I get 'ab' in the result?  I'm trying
to concatenate columns and one of them might have NULL values, which I
simply want to ignore.

Cheers,

--
Seb

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

Предыдущее
От: Shashank Tripathi
Дата:
Сообщение: Re: Help - corruption issue?
Следующее
От: Bosco Rama
Дата:
Сообщение: Re: concatenating with NULLs