| From: | "Jackson, DeJuan" <djackson(at)cpsgroup(dot)com> |
|---|---|
| To: | Sergei Chernev <ser(at)nsu(dot)ru>, pgsql-general(at)hub(dot)org |
| Subject: | RE: [GENERAL] IN/NOT IN operators |
| Date: | 1998-10-01 16:59:31 |
| Message-ID: | F10BB1FAF801D111829B0060971D839F445B3D@cpsmail |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general |
This may not be the answer you want to hear but you could just
restructure it into an and-or query.
select * from aa where (bb = 2 and ff = 3) or (bb = 4 and ff = 5);
-DEJ
> -----Original Message-----
> From: Sergei Chernev [SMTP:ser(at)nsu(dot)ru]
> Sent: Wednesday, September 30, 1998 4:15 AM
> To: pgsql-general(at)hub(dot)org
> Subject: [GENERAL] IN/NOT IN operators
>
> Hello,
> I want to ask you if there are the way to do:
> select * from aa where (bb, ff) IN ((2,3),(4,5));
> ERROR: parser: parse error at or near "2" :((
>
> I see that it works with subselect:
> select * from aa where (bb, ff) IN (select (bb,ff) from zz);
>
>
> Thank you,
> ---------------------------
> Sergei Chernev
> Internet: ser(at)nsu(dot)ru
> Phone: +7-3832-397354
>
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Taral | 1998-10-01 17:55:39 | CNF vs DNF |
| Previous Message | Jackson, DeJuan | 1998-10-01 16:43:28 | RE: [GENERAL] How do i use unix sockets... |