Sub Selects?
From: Michael Koziarski (michael_at_koziarski.com)
Date: 03/23/04
- Next message: Viatcheslav V. Vassiliev: "Re: problem in adoquery.sql.text"
- Previous message: Thomas Vedel: "Re: How to handle autonumber fields"
- Next in thread: Mike Walsh: "Re: Sub Selects?"
- Reply: Mike Walsh: "Re: Sub Selects?"
- Reply: Júlio Silva: "Re: Sub Selects?"
- Reply: Brian Bushay TeamB: "Re: Sub Selects?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 23 Mar 2004 21:16:57 +1200
Hey guys,
I'm currently writing my first Delphi application, it's using ADO to connect
to a Jet database.
I have to pull out data from one table, based on items selected in the UI.
Now, what I'd like to do is write something like:
SELECT name, dob, income FROM Customer WHERE CustomerID IN
(1,2,3,4,5,6,9,294)
But I can't figure out how to do this with Parameters or Filters. Is there
some nice Delphi DB technique to do this, or should I just build up the SQL
and escape things manually.
Alternatively, should I just pull back all the records and skip the ones not
relevant (potentially very slow).
Cheers
Koz
- Next message: Viatcheslav V. Vassiliev: "Re: problem in adoquery.sql.text"
- Previous message: Thomas Vedel: "Re: How to handle autonumber fields"
- Next in thread: Mike Walsh: "Re: Sub Selects?"
- Reply: Mike Walsh: "Re: Sub Selects?"
- Reply: Júlio Silva: "Re: Sub Selects?"
- Reply: Brian Bushay TeamB: "Re: Sub Selects?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|