I am passing argument in query using property files like indexid=a,b,c,d.Below is my code-
PreparedStatement ps =conn.prepareStatement("Select * from indexcalc where DATE between ? and ? and "+"isd_index in ?");
ps.setDate(1, d1);
ps.setDate(2, d2);
ps.setString(1, indexList);
Now problem is if I mark values in property file like 'a','b',query runs fine but i want passing argument like a,b.So what will be approach so that argument passed like a should be treated by query as 'a'.please suggest.