Pass parameter by "in" Delphi -


i need pass parameter sql in delphi using bde using "in", example below:

select * customers id in (:p_in) 

i need pass: p_in list of customers. query.parambyname.('p_in').asstring: = '1, 2,3 ', , did not work .. have make array? or passed asvariant?

try :

p_in  : string ;  := 0 customerlist.count    p_in := p_in +customerlist[i] + ',';   myquery.text := 'select * customers id in (' + p_in  + ' )' ; 

Comments

Popular posts from this blog

android - getbluetoothservice() called with no bluetoothmanagercallback -

sql - ASP.NET SqlDataSource, like on SelectCommand -

ios - Undefined symbols for architecture armv7: "_OBJC_CLASS_$_SSZipArchive" -