| From: | David Dick <david_dick(at)iprimus(dot)com(dot)au> |
|---|---|
| To: | Havasvölgyi Ottó <h(dot)otto(at)freemail(dot)hu> |
| Cc: | pgsql-sql(at)postgresql(dot)org |
| Subject: | Re: NULL in IN clause |
| Date: | 2005-10-19 20:43:56 |
| Message-ID: | 4356B00C.2040702@iprimus.com.au |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-sql |
As i understand it, the use of NULL in SQL means the value of the column
is unknown. Therefore that result would seem fair.
Havasvölgyi Ottó wrote:
> Hi,
>
> I have just run this command on 8.0.4 :
>
> SELECT 'foo' WHERE 0 NOT IN (NULL, 1);
>
> And it resulted is zero rows.
> Without NULL it is OK.
> Is this a bug, or the standard has such a rule?
>
> Best Regards,
> Otto
>
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Have you searched our list archives?
>
> http://archives.postgresql.org
>
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Stephan Szabo | 2005-10-19 21:00:03 | Re: NULL in IN clause |
| Previous Message | Terry Fielder | 2005-10-19 20:41:48 | Re: NULL in IN clause |