> Bruce Momjian <[EMAIL PROTECTED]> writes:
> > I thought NOT IN was the only one that was concerned about any NULL?
> 
> No, they both are: in the presence of NULLs, IN can return TRUE or NULL,
> NOT IN can return FALSE or NULL.
> 
> The reason the FAQ is always about NOT NULL is that WHERE treats NULL as
> FALSE, so the average newbie writing an IN doesn't even realize he's
> getting a NULL rather than a FALSE.  With NOT NULL, he can't ignore it.

Got it.  How does an IN subquery returning NULL behave differently from
one returning FALSE?  I can't think of a test that would be affected.

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  [EMAIL PROTECTED]               |  (610) 853-3000
  +  If your life is a hard drive,     |  830 Blythe Avenue
  +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026

---------------------------(end of broadcast)---------------------------
TIP 2: you can get off all lists at once with the unregister command
    (send "unregister YourEmailAddressHere" to [EMAIL PROTECTED])

Reply via email to