in reply to Slightly OT - SQL Question
(Also note that Access may also support an alternative to that OR list using a syntax like "ID is in (7, 12, 42)"; and as a general rule, you should consider using placeholders instead of embedded values in literal queries as shown above.)
It's true that you can't do it all in one query, for the reasons mentioned in other replies, but doing it in a constant two queries and a foreach loop is definitely better than doing hundreds of separate queries, one for each match.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Slightly OT - SQL Question
by digger (Friar) on Sep 20, 2003 at 22:39 UTC |