Using NULL values in calculated results

Поиск
Список
Период
Сортировка
От Zak McGregor
Тема Using NULL values in calculated results
Дата
Msg-id 200102231134.NAA00999@zak.home.dom
обсуждение исходный текст
Ответы Re: Using NULL values in calculated results  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
Hi all

Am I wrong in thinking that any mathematical operation with a null value
should result in a null result? The reason I ask is that the following all
behave as expected:
select 1+null => null
select 1*null => null

but select 1/null => division by zero error. Is this how it is supposed to
work? I've tried on 7.0.2 and 7.0.3.


Thanks

Cheers

Zak

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

Предыдущее
От: Karel Zak
Дата:
Сообщение: Re: International support
Следующее
От: Pete Forman
Дата:
Сообщение: Re: Questions to lists / translations