Problem when WHERE with IN operator
Posted: Tue 01 Jan 2019 22:33
Hello!
I am in trouble when use IN operator and parameters, as follows:
SELECT
id,
name
FROM
table
WHERE
id IN (:parameter)
Passing 1,2,3 as string parameter. In any case, it returns only the fist ID (in this case 1).
Can be tested with MyDAC 9.0.2 and 8.7.27 using the Data Editor in IDE (I am using Lazarus 1.8.4).
If you can provide a solution for this problem, please help me.
att,
EliƩser
I am in trouble when use IN operator and parameters, as follows:
SELECT
id,
name
FROM
table
WHERE
id IN (:parameter)
Passing 1,2,3 as string parameter. In any case, it returns only the fist ID (in this case 1).
Can be tested with MyDAC 9.0.2 and 8.7.27 using the Data Editor in IDE (I am using Lazarus 1.8.4).
If you can provide a solution for this problem, please help me.
att,
EliƩser