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
Post a Comment