| От | Hans de Bruin |
|---|---|
| Тема | Re: append columns that are null |
| Дата | |
| Msg-id | 40ec5075$0$34762$e4fe514c@news.xs4all.nl обсуждение |
| Ответ на | append columns that are null (Gerwin Philippo <gerwin@vernet.nl>) |
| Список | pgsql-sql |
nobody wrote: > "Gerwin Philippo" <gerwin@vernet.nl> wrote in message > news:40ec1043$0$559$e4fe514c@news.xs4all.nl... > >>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? 3 + unknown value = unknown value its also unknown if 3 is bigger, smaller or equal to an unknown value. -- Hans de Bruin http://eratosthenes.xs4all.nl
В списке pgsql-sql по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера