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
Can a final method be overloaded?
How do you find the independent variable?
How do you declare a destructor in java?
What is console based application in java?
What is the finalize method do?
What does int [] mean in java?
Can you access the private method from outside the class?
How do generics work in java?
Can an interface be defined inside a class?
What is array class in java?
What is a ?
What are the Class Libraries ?
What is the difference between a method and a function in alice?
Why we override equals() method?
Explain the use of shift operator in java. Can you give some examples?