Re: Large OR query - Mailing list pgsql-general

From Einar Karttunen
Subject Re: Large OR query
Date
Msg-id Pine.LNX.4.33.0106121849460.1261-100000@raakinsaari.cs.Helsinki.FI
Whole thread Raw
In response to Re: Large OR query  ("Mitch Vincent" <mvincent@cablespeed.com>)
List pgsql-general
On Tue, 12 Jun 2001, Mitch Vincent wrote:

> Is populating another table with the 1000 values and doing a
> SELECT * FROM <whatever> WHERE <something> IN (SELECT <something> FROM
> <whatever>) ?
>
> I'm not entirely sure that it will yield a better result but it's worth a
> try.
>
SELECT * FROM <whatever>,<temptable> WHERE whatever.id=temp.id;

is probably what you are after.

- Einar Karttunen


pgsql-general by date:

Previous
From: "Tamsin"
Date:
Subject: RE: Large OR query
Next
From: "Tad Naworal"
Date:
Subject: total newbie question