Skip site navigation (1) Skip section navigation (2)

Peripheral Links

Header And Logo

PostgreSQL
| The world's most advanced open source database.

Site Navigation

Search for
  Advanced Search

Re: NULLs ;-)



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)

sorry, but no.

Argh, my expression is just nonsense - I was thinking of something like:

  coalesce(a, 'SOME MAGIC VALUE') <> coalesce(b, 'SOME MAGIC VALUE')

and wanted to make it work for any types.  Sigh.

- John D. Burger
  MITRE



Home | Main Index | Thread Index

Privacy Policy | PostgreSQL Archives hosted by Command Prompt, Inc. | Designed by tinysofa
Copyright © 1996 – 2008 PostgreSQL Global Development Group