A Parameter returns a list of various numeric values:
[12345, 1234, 123]
The length and quantity vary, e.g. it could be a list of 100 or a list of only 5 values.
Now I want to use those values in the WHERE of a Microsoft SQL-Server query. I thought of using IN. Therefore I need to convert those values into the right syntax:
('12345', '1234', '123')
Some ideas for the right conversion?
Other better(easier) solutions without using LIKE?
Edit: Sorry. My case description wasn't clear at all. The SQL Query is inside iReport and the Parameter (e.g. $P{DATUM_BIS}) is returned by external software.