how to execute multiple different queries in one execute?
I want to execute the multiple queries or job in one execute. Something like this eg:
String query="select * from tab1;insert into tab1 values(...);update tab1..;delete from tab1...;"
Statement st = con1.createStatement();
ResultSet rs = st.executeQuery(query);
Or multiple select queries.Queries will be dynamic.
But I am not able to do this.What is the way to run multiple queries separated by semi colon.
Re: how to execute multiple different queries in one execute?