Statement stmt = connection.createStatement() ;
stmt.addBatch("insert into tbl_User values('Jordan', 5000, 40) ;
stmt.addBatch("insert into tbl_User values (Johnson', 1500, 24) ;
stmt.addBatch("insert into tbl_User values ('Jackson', 6400, 18) ;
int[] updateCounts = stmt.executeBatch() ;
con.commit() ; |