I would like to achieve the above using jdbctemplate.
I have the following using jdbc:
Connection conn = DBUtilities.getSQLConnection();
// get a connection
Statement stmt = conn.createStatement();
//create statement
stmt.addBatch(sql1);
//first sql statement to be added
stmt.addBatch(sql2);
//second sql to be added
stmt.executeBatch();
ResultSet rs = stmt.executeQuery(sql3);
//third sql that uses previous sql 1 and 2
How do I add multiple SQL (batch) with jdbctemplate?