Re: numeric fields and null

From: Alexey Dashevsky <alex(at)kpgaz(dot)chernigov(dot)ua>
To: pgsql-sql(at)postgresql(dot)org
Subject: Re: numeric fields and null
Date: 2003-05-23 05:51:49
Message-ID: 20030523055146.7929619327@kpgaz.chernigov.ua
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

> > adhoc=# update users set postaladdressid=null where id=50;
> > UPDATE 1
> >
> > adhoc=# select id,postaladdressid from users where postaladdressid=null;
> > id | postaladdressid
> > ----+-----------------
> > (0 rows)
> >
> > Why did it not select record 50?
>
> Because NULL=NULL is not true (it's unknown). Use IS NULL if you want to
> see if something is NULL.

If in postgresql.conf set parameter transform_null_equals=TRUE ????

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Bruce Young 2003-05-23 06:48:31 language "plpgsql" does not exist
Previous Message Rod Taylor 2003-05-23 01:59:43 Re: plpgsql recursion