Re: [GENERAL] Concatenating NULL with JSONB value return NULL

Поиск
Список
Период
Сортировка
От John R Pierce
Тема Re: [GENERAL] Concatenating NULL with JSONB value return NULL
Дата
Msg-id d752291e-931a-198c-93e6-1b511900208a@hogranch.com
обсуждение исходный текст
Ответ на [GENERAL] Concatenating NULL with JSONB value return NULL  (Jong-won Choi <jongwon@ticketsquad.com>)
Ответы Re: [GENERAL] Concatenating NULL with JSONB value return NULL
Список pgsql-general
On 12/18/2016 2:52 PM, Jong-won Choi wrote:
>
> I have a NULL-able JSONB type column and want to perform upsert,
> concatenating with the existing value.

NULL does not mean 'NO' value in SQL it means UNKNOWN value. sort of
like the 'indeterminate' in math.

maybe you want a NOT NULL json value that you set to ''  or something
when its empty.


--
john r pierce, recycling bits in santa cruz



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

Предыдущее
От: Jong-won Choi
Дата:
Сообщение: [GENERAL] Concatenating NULL with JSONB value return NULL
Следующее
От: Melvin Davidson
Дата:
Сообщение: Re: [GENERAL] Concatenating NULL with JSONB value return NULL