Re: Defining string to represent null values in select

Поиск
Список
Период
Сортировка
От Andreas Kretschmer
Тема Re: Defining string to represent null values in select
Дата
Msg-id 20081108084416.GA7950@tux
обсуждение исходный текст
Ответ на Defining string to represent null values in select  (Brent Wood <pcreso@yahoo.com>)
Список pgsql-general
Brent Wood <pcreso@yahoo.com> schrieb:

>
> Hi,
>
> I can specify the text used to represent a null value in output from copy, but I'd like to do something similar is
selectoutput, eg: all NULL values are represented by NA or NaN. 

COALESCE:
test=*# select coalesce(NULL, 'NaN');
 coalesce
----------
 NaN



Andreas
--
Really, I'm not out to destroy Microsoft. That will just be a completely
unintentional side effect.                              (Linus Torvalds)
"If I was god, I would recompile penguin with --enable-fly."   (unknown)
Kaufbach, Saxony, Germany, Europe.              N 51.05082°, E 13.56889°

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

Предыдущее
От: Craig Ringer
Дата:
Сообщение: Re: Short CVS question, history
Следующее
От: Andreas Kraftl
Дата:
Сообщение: Fulltext index