append columns that are null

Поиск
Список
Период
Сортировка
От Gerwin Philippo
Тема append columns that are null
Дата
Msg-id 40ec1043$0$559$e4fe514c@news.xs4all.nl
обсуждение исходный текст
Список pgsql-sql
I have function that appends 2 columns, like
"new.field1 = new.field2||new.field3",
but when field 3 is null, then the entire outcome is null, while I 
expected just field2, since when I append nothing to field2, I get 
field2, right?
Is this standard behaviour, and if so, is there another append function 
that I can use that doesn't behave like this?


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

Предыдущее
От: "Sarah Tanembaum"
Дата:
Сообщение: Secure DB Systems - How to
Следующее
От: Hans de Bruin
Дата:
Сообщение: Re: append columns that are null