How to set values for sql with IN which can hold variable numbers like, ... WHERE ...status IN (4, 6,7 ); ?
PreparedStatement ps = con.prepareStatement(
"SELECT ea.* FROM employeeAssignment ea "
+ "JOIN employee e ON e.employeeID = ea.employeeID "
+ "WHERE e.resourceID = ? and ea.status IN (?);");
ps.setInt(1, 75);
ps.setInt(2, someArray/some thing other?);