I need to query the DB but the parameter values from that query need to come from a file, here is the code...
BufferedReader reader = new BufferedReader(new FileReader("C:/DBMigrations/empIDs.txt"));
String line = null;
String query = "select name, address from Employee where id in (";
while ((line = reader.readLine()) != null) {
// the value of line needs to be plugged into query inside the in clause
}
I am using Spring's SimpleJdbcTemplate.
Thanks in advance for any help.