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 archives
  Advanced Search

Re: When is a record NULL?


  • From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
  • To: "David E. Wheeler" <david(at)kineticode(dot)com>
  • Cc: PostgreSQL-development Hackers <pgsql-hackers(at)postgresql(dot)org>
  • Subject: Re: When is a record NULL?
  • Date: Thu, 23 Jul 2009 19:08:28 -0400
  • Message-id: <14776.1248390508@sss.pgh.pa.us> <text/plain>

"David E. Wheeler" <david(at)kineticode(dot)com> writes:
> How can a record be neither NULL or NOT NULL?

This is per SQL standard.  IS NULL is true if *all* the record's
fields are null; IS NOT NULL is true if *none* of them are.

Yeah, it's a bit dubious, but that's what they said.

			regards, tom lane



Home | Main Index | Thread Index

Privacy Policy | About PostgreSQL
Copyright © 1996 – 2012 PostgreSQL Global Development Group