From: | Alban Hertroys <alban(at)magproductions(dot)nl> |
---|---|
To: | Richard Huxton <dev(at)archonet(dot)com> |
Cc: | Stefan Schwarzer <stefan(dot)schwarzer(at)grid(dot)unep(dot)ch>, pgsql-general(at)postgresql(dot)org |
Subject: | Re: ANY |
Date: | 2007-09-06 15:56:30 |
Message-ID: | 46E0232E.3090203@magproductions.nl |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Richard Huxton wrote:
> Alban Hertroys wrote:
>>
>> SELECT * FROM gdp WHERE NULL IS NOT ANY(y1970, y1971, y1972);
> AFAIK there are two variants of ANY()
> 1. sets
> 2. arrays
>
> So you should be able to do:
> ... WHERE x = ANY( ARRAY[a, b, c] )
But then the documentation isn't entirely correct. It suggests that it
works similar to IN, but it doesn't.
> Of course, where x is NULL, I don't think that'll help you (x = NULL
> returns NULL). Oh, and you couldn't have nulls in arrays before 8.2 iirc.
Well, as ANY allows the use of an operator, I figured you could use IS
NULL with it.
--
Alban Hertroys
alban(at)magproductions(dot)nl
magproductions b.v.
T: ++31(0)534346874
F: ++31(0)534346876
M:
I: www.magproductions.nl
A: Postbus 416
7500 AK Enschede
// Integrate Your World //
From | Date | Subject | |
---|---|---|---|
Next Message | Max Zorloff | 2007-09-06 16:08:21 | Connection pooling |
Previous Message | TJ O'Donnell | 2007-09-06 15:43:54 | a provocative question? |