How to format a string as a parameter for IN clause
Posted: Thu 17 Feb 2005 18:04
I just converted an app from BDE to SDAC but the query does not returns data anymore. I found out that the problem is with the string that i pass in the IN clause. The query is like this.
SELECT *
FROM tblABC
WHERE Item IN(:Item)
:Item = 'Item1','Item2'
This fails.
The query works if i set parameter to only one Value
:Item = 'Item1'
This works.
How should i format the string?
It used to work in BDE though.
SELECT *
FROM tblABC
WHERE Item IN(:Item)
:Item = 'Item1','Item2'
This fails.
The query works if i set parameter to only one Value
:Item = 'Item1'
This works.
How should i format the string?
It used to work in BDE though.