Search Postgresql Archives

Re:

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Jun 30, 2009 at 1:22 PM, Erik Jones<ejones@xxxxxxxxxxxxxx> 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

-- 
Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux