🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.database.ado
Article #3867

How to assign parameter for SQL( select * from Suppliers where SuppID in( '111','222','333')

#3867
From: Junlin Xie
Date: Mon, 10 Jun 2002 09:53
14 lines
1282 bytes
Hi,
    I want to query data from using ADODataSet, the SQL as following:

    Select * from Suppliers where SuppID in (:SuppList),

    Supplist = "'111', '222', '333'";
    I set ADODataSet->Parameters->ParamByName("SuppList")->Value = Supplist;

    But It does not work, How to set parameters for the kind of SQL
statement?

    Thank you very much!

Junlin Xie
Technical Details
Message-ID: <3d04779b_2@dnews>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-08!supernews.com!news.maxwell.syr.edu!feed2.news.rcn.net!rcn!nntp.abs.net!uunet!dca.uu.net!newsfeeds.ihug.co.nz!ihug.co.nz!dnews

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10698b,c794c3e7eac6ad87,start
X-Google-Attributes: gid10698b,public
X-Google-ArrivalTime: 2002-06-10 02:59:08 PST
From: "Junlin Xie" <jlxie@yahoo.com>
Newsgroups: borland.public.cppbuilder.database.ado
Subject: How to assign parameter for SQL( select * from Suppliers where SuppID in( '111','222','333')
Date: Mon, 10 Jun 2002 17:53:13 +0800
Lines: 17
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4522.1200
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200
NNTP-Posting-Host: 202.105.138.4
Message-ID: <3d04779b_2@dnews>
X-Trace: dnews 1023702939 202.105.138.4 (10 Jun 2002 02:55:39 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-08!supernews.com!news.maxwell.syr.edu!feed2.news.rcn.net!rcn!nntp.abs.net!uunet!dca.uu.net!newsfeeds.ihug.co.nz!ihug.co.nz!dnews