Re: problems with SELECT query results

Поиск
Список
Период
Сортировка
От Richard Broersma Jr
Тема Re: problems with SELECT query results
Дата
Msg-id 997252.72262.qm@web31808.mail.mud.yahoo.com
обсуждение исходный текст
Ответ на Re: problems with SELECT query results  (Brian Hurt <bhurt@janestcapital.com>)
Список pgsql-novice
--- Brian Hurt <bhurt@janestcapital.com> wrote:
> Check for nulls.  Remember that 'foo' || NULL yeilds NULL, so if one of
> your fields is null, the whole string will be null.

Also, if you know the nulls will be present, and you want a way to handle them is a predetermined
way, you can wrap your fields like so: COALESCE( yourfield, 'oops value is null') or some such.

http://www.postgresql.org/docs/8.2/interactive/functions-conditional.html#AEN13107

I hope this helps.

Regards,
Richard Broersma Jr.

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

Предыдущее
От: Brian Hurt
Дата:
Сообщение: Re: problems with SELECT query results
Следующее
От: Joshua
Дата:
Сообщение: Re: problems with SELECT query results