Re: [SQL] problem with select

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: holm(at)freibergnet(dot)de
Cc: pgsql-sql(at)postgreSQL(dot)org
Subject: Re: [SQL] problem with select
Date: 1999-08-31 13:31:23
Message-ID: 15130.936106283@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Holm Tiffe <holm(at)freibergnet(dot)de> writes:
> It is almost working, my database isn't that big that memory becomes a
> problem; the machine has 512MB.
> But why is nothing found if one value of a column contains NULL ?

Because nulls propagate: any operator whose input is NULL produces NULL.
The only things that don't return NULL are the special syntaxes IS NULL,
IS NOT NULL, and CASE expressions using them (in particular the CASE
shortcuts COALESCE, etc).

You probably want to write COALESCE(field, '') in place of just field
for any column that can be NULL.

regards, tom lane

Browse pgsql-sql by date

  From Date Subject
Next Message Tom Lane 1999-08-31 14:31:23 Re: [SQL] Installation Prob
Previous Message José Soares 1999-08-31 12:23:51 Re: [SQL] problem with select