Passign CSV to Params?
Posted: Tue 21 Apr 2009 19:51
Is this possible to receive this result?
When I want the database to get the SQL like
from a PgQuery.SQL.Text that contains
or do I have to create separate parameters for all the values I'm looking for?
Code: Select all
PgQuery.ParamByName('ids').AsString := '1,2,3';
Code: Select all
SELECT * FROM employee WHERE id IN(1,2,3)
Code: Select all
'SELECT * FROM employee WHERE employee_id IN (:ids)'