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
Explain implementation and how is it different from conversion?
Explain the difference between static and dynamic binding in java?
What is difference between overloading and overriding in java?
What do you mean by compiler?
Why java doesn’t support multiple inheritances?
Is char a data type in java?
Can you sort a string in java?
What is null mean in java?
How do you decide when to use arraylist and linkedlist?
What is a layout manager and what are different types of layout managers available in java awt?
Can we override singleton class?
What are the 5 types of research methods?
What does || || mean in math?
How do you identify if jvm is 32-bit or 64-bit from java program?
What is instance means in java?