Re: - Mailing list pgsql-general

From Merlin Moncure
Subject Re:
Date
Msg-id b42b73150906301142m316fb5auf0065573b6cf03c8@mail.gmail.com
Whole thread Raw
In response to Re:  (Erik Jones <ejones@engineyard.com>)
List pgsql-general
On Tue, Jun 30, 2009 at 1:22 PM, Erik Jones<ejones@engineyard.com> wrote:
>> and if I have a row in table C where c.id is null? A don't know.
>
> No, it's perfectly clear as 'NULL = NULL' evaluates to false:
>
> postgres=# select null = null;
>  ?column?
> ----------
>

you can test for that with 'is distinct from':

select null is distinct from null;  -- false
select null is distinct from 1;  -- true

pgsql-general by date:

Previous
From: David Fetter
Date:
Subject: Re:
Next
From: BJ Freeman
Date:
Subject: Re: another can't connect--solved