I have the following query that returns 2 records (in the DataSet query builder)
SELECT EmpID, Name, id FROM Users WHERE (CAST(id AS Varchar(20)) IN ('5688','5689'))
Now, if I make the same request, passing this parameter instead of code: String param = "'5688', '5689'"; it returns null.
WHERE (CAST(id AS Varchar(20)) IN (@param))
I tried to take off from the very first and last, "but that did not change the situation.
!!! id - unique PK !!!
Anyone got it?
source share