Re: problems with SELECT query results - Mailing list pgsql-novice

From Richard Broersma Jr
Subject Re: problems with SELECT query results
Date
Msg-id 997252.72262.qm@web31808.mail.mud.yahoo.com
Whole thread Raw
In response to Re: problems with SELECT query results  (Brian Hurt <bhurt@janestcapital.com>)
List 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 by date:

Previous
From: Brian Hurt
Date:
Subject: Re: problems with SELECT query results
Next
From: Joshua
Date:
Subject: Re: problems with SELECT query results