Re: coalesce

Поиск
Список
Период
Сортировка
Искать
От
Kevin Grittner
Тема
Re: coalesce
Дата
Msg-id
4E79AF70020000250004150D@gw.wicourts.gov
Ответ на
coalesce (Henry Drexler)
Список
Дерево обсуждения
coalesce Henry Drexler <alonup8tb@gmail.com>
Re: coalesce "Kevin Grittner" <Kevin.Grittner@wicourts.gov>
Re: coalesce Henry Drexler <alonup8tb@gmail.com>
Re: coalesce Alvaro Herrera <alvherre@commandprompt.com>
Re: coalesce Bruce Momjian <bruce@momjian.us>
Re: coalesce Bruce Momjian <bruce@momjian.us>
Re: coalesce Tom Lane <tgl@sss.pgh.pa.us>
Re: coalesce Bruce Momjian <bruce@momjian.us>
Re: coalesce Henry Drexler <alonup8tb@gmail.com>
Henry Drexler  wrote:
 
> "If the results of the first argument are null, it will return the
> second."
 
Unless the second is also null, in which case it will return the
third.  Unless the third is also null...
 
The trick is to come up with language which recognizes that there
can be any number of arguments.  Personally, I think the existing
language does a good job of that, and is pretty clear.
 
> so I made this example that makes sense:
> 
>     COALESCE(column,substitute value)
 
Perhaps a two-argument example would be helpful, as long as it
doesn't mislead people into thinking the construct is limited to two
arguments.
 
-Kevin
В списке pgsql-docs по дате отправления
От: Peter Eisentraut
Дата:
От: Henry Drexler
Дата:
Сообщение: Re: coalesce
FAQ