How set parameters for 'Select * from Suppliers where SuppID in ('111', '222', '333')'

How set parameters for 'Select * from Suppliers where SuppID in ('111', '222', '333')'

Post by Junlin Xi » Tue, 11 Jun 2002 18:55:39



Hi,
    I want to query data from using ADO, the SQL as following:

    Select * from Suppliers where SuppID in ('111', '222', '333'),

    How to set parameters for this kind of SQL statement from client?

    Thank you very much!

Junlin Xie

 
 
 

How set parameters for 'Select * from Suppliers where SuppID in ('111', '222', '333')'

Post by Val Mazu » Tue, 11 Jun 2002 23:39:16


Hi,

Check next link

http://support.microsoft.com/directory/article.asp?ID=KB;EN-US;Q18173...
-US&rnk=6&SD=msdn&FR=0&qry=howto%20execute%20query%20using%20ADO&src=DHCS_MS
PSS_msdn_SRCH&SPR=MSALL&

--
Val Mazur
Microsoft MVP


Quote:> Hi,
>     I want to query data from using ADO, the SQL as following:

>     Select * from Suppliers where SuppID in ('111', '222', '333'),

>     How to set parameters for this kind of SQL statement from client?

>     Thank you very much!

> Junlin Xie