Answer Posted / vijayakumar chinnasamy
Batch Update provide the functionality of executing a group
of sql statement at single timing.
Steps:
1.set autocommit as false for connection .
connectionObject.setAutoCommit(false);
2.create sql statement and add to statement object.
statementObj.addBatch("sql1");
statementObj.addBatch("sql2");
statementObj.addBatch("sql3");
3.execute the batch of statement using executeBatch().
statementObj.executebatch();
4. commit the connection.
connectionObj.commit();
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
What is the exact difference in between unicast and multicast object? Where we will use?
Is static a singleton?
Explain the hierarchy of java exception classes?
What is a blocking method in Java?
Where are the local variables stored?
What is the same as procedures?
What is set string?
what happens when a thread cannot acquire a lock on an object? : Java thread
what is session in java?
What do you mean by compiler?
How do you represent a space in regex java?
What is enhanced loop in java?
Why arraylist is not synchronized in java example?
What are the 4 types of research methods?
What is a byte array?