Re: concatenation operator || with "null" array

Поиск
Список
Период
Сортировка
От stroncococcus
Тема Re: concatenation operator || with "null" array
Дата
Msg-id 1165452275.301000.227600@16g2000cwy.googlegroups.com
обсуждение исходный текст
Ответ на Re: concatenation operator || with "null" array  ("stroncococcus" <stroncococcus@gmx.de>)
Список pgsql-general
stroncococcus wrote:
> Ok, solved the problem with COALESCE.

Hm, I not really solved it ... just solved it for text columns, but not
for integer arrays.
I can use this for text
COALESCE(textcol, '') || 'str '
but how do I use this for integers?
Is there a way to create an empty integer array and do such a thing ...
COALESCE(intarraycol, *empty int array*) || 5


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

Предыдущее
От: "stroncococcus"
Дата:
Сообщение: concatenation operator || with "null" array
Следующее
От: "sasan3@gmail.com"
Дата:
Сообщение: can this be done in one SQL selcet statement?!