Search Postgresql Archives

Re: NULLs ;-)

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

 



Scott Ribe wrote:

where a <> b or (a is null and b is not null) or (a is not null and b is null)

In the absence of IS DISTINCT FROM, I think this has the same semantics:

  where coalesce(a, b) <> coalesce(b, a)

although it's not as concise as one might wish.

- John D. Burger
  MITRE


[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