Hello,
Is it possible to send a parameter into IN clause, for example:
SELECT * FROM TABLE WHERE id IN (:id);
where ParamByName(id) = '5,6,7,8';
Regards
Michal
Parameter into the IN clause
Re: Parameter into the IN clause
Hello,
You cannot use parameters in the IN operator. To implement such behavior, you can use macros:
You cannot use parameters in the IN operator. To implement such behavior, you can use macros:
Code: Select all
UniQuery1.SQL.Text := 'select * from dept where deptno in (¯o1)';
UniQuery1.MacroByName('macro1').Value := '10,20,30';
UniQuery1.Open;Re: Parameter into the IN clause
Thanks 
Regards
Michal
Regards
Michal
Re: Parameter into the IN clause
If you have any further questions, feel free to contact us.