to update a batch in a table in jdbc which method of
statement object is used.

Answers were Sorted based on User's Feedback



to update a batch in a table in jdbc which method of statement object is used...

Answer / prasad

we will call updateBatch on statement

Is This Answer Correct ?    22 Yes 2 No

to update a batch in a table in jdbc which method of statement object is used...

Answer / surima

First add the sql querys to statement object via
stmt.addBatch(strupdQry)
then write stmt.executeBatch()

Is This Answer Correct ?    21 Yes 1 No

to update a batch in a table in jdbc which method of statement object is used...

Answer / name

!!! we will call updateBatch on statement!!!

Is This Answer Correct ?    6 Yes 4 No

to update a batch in a table in jdbc which method of statement object is used...

Answer / kakumudi srihari mca

By using BatchUpdate().

Is This Answer Correct ?    0 Yes 0 No

to update a batch in a table in jdbc which method of statement object is used...

Answer / subhasish

surima is correct

Is This Answer Correct ?    0 Yes 4 No

to update a batch in a table in jdbc which method of statement object is used...

Answer / chandran

to update a batch in a table Prepared Statement is used and
the method executeUpdate(), is used

Is This Answer Correct ?    4 Yes 15 No

Post New Answer

More J2EE Interview Questions

i developed a Stateless Session bean program.And created a client by a common java class as class m {p s v m(String s[]){....}} And i called the bean deployed in weblogic.from cmd prompt And that run. mind it i have to set setenv,seting classpath for that bean jar file before compile and run it. ok when i do a servlet programme deployed in tomcat and call that bean then it give classdefnotfoundException and NoInitialContext like this.So how i sucessfully do this? Ok when i call that bean from java class from the console like i previously told, if i don't set setenv i found the same error on the cmd prompt. pls help to get out of it

2 Answers  


What is ear file?

0 Answers  


Can I run seam in a j2ee environment?

0 Answers  


What is filter chain?

0 Answers  


Is advanced java and j2ee same?

0 Answers  






Describe secure socket layer (ssl)?

0 Answers  


What does resource adapt module contain?

0 Answers  


How does javac compiler work?

0 Answers  


Which framework is best for java?

0 Answers  


What is bean factory, have you used xmlbean factory?

0 Answers  


Which software is used for java?

0 Answers  


What is a java application client?

0 Answers  


Categories