I am using an OLEDB connection to read data from excel files. I am having problems using the IN operator in a Select query. Below is my request,
string EmployeeIds = "'1231','1232','1233'"; SELECT [Employee Number],[Employee Name],[First In Time],[Last Out Time],[Total Work Hours] FROM [Sheet0$A2:J] WHERE [Employee Number] IN (?); comm.Parameters.AddWithValue("?",EmployeeIds);
I get empty results, but if I give only one value, I get the result. Please, help.
source share