Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Home Answers Viewqa JDBC how can we do batch updates using callablestatement interface
Login         

View Questions and Answers by Category

Advertisements


 
Have Programming Question? Ask it here!
 
 
 


Nagendran
how can we do batch updates using callablestatement interface
1 Answer(s)      2 years and 7 months ago
Posted in : JDBC


how can we do batch updates using callablestatement interface


Advertisement
View Answers

May 9, 2012 at 4:38 PM


The batch update is the ability to process more than one statement at once.CallableStatement.executeBatch() method is used to execute the batch of statements.

CallableStatement cstmt = con.prepareCall("{call updatePrices(?, ?)}");
 cstmt.setString(1, "A");
 cstmt.setFloat(2, 8.49f);
 cstmt.addBatch();

 cstmt.setString(1, "B");
 cstmt.setFloat(2, 9.49f);
 cstmt.addBatch();

 int [] updateCounts = cstmt.executeBatch();


Related Tutorials/Questions & Answers:
JDBC add batch, JDBC add batch Example, JDBC add batch example code
. In case of JDBC Batch update you can include many updates in the same batch...JDBC add batch Making JDBC batch update example In this section we will learn how use JDBC add batch to make JDBC batch update. The JDBC batch update
How can we create a database using PHP and mysql?
How can we create a database using PHP and mysql?  How can we create a database using PHP and mysql
Advertisements
How can we encrypt the username and password using PHP?
How can we encrypt the username and password using PHP?  How can we encrypt the username and password using PHP
How can we find the number of rows in a result set using PHP?
How can we find the number of rows in a result set using PHP?   How can we find the number of rows in a result set using PHP
How can we get second of the current time using date function?
How can we get second of the current time using date function?  How can we get second of the current time using date function
JDBC: Batch Insert Example
JDBC: Batch Insert Example In this tutorial, you will learn how to do batch insertion of records using JDBC API. Batch Insert : When you want to insert... insertion concept. We can insert multiple rows using single connection
JDBC: Batch Update Example
concept. We can update multiple rows using single connection in batch update...JDBC: Batch Update Example In this tutorial, you will learn how to do batch update of records using JDBC API. Batch Update : When you want to update
HOW TO DO WEBSITE INTERFACE FOR JAVA MODULE
HOW TO DO WEBSITE INTERFACE FOR JAVA MODULE  Hi , Greetings. I... an interface ? any 3rd party software like frontpage can do or other method ? PLEASE... information etc. All these modules work fine in browser. I use JCreator. How to place
What is the maximum size of a file that can be uploaded using PHP and how can we change this?
What is the maximum size of a file that can be uploaded using PHP and how can we change this?  What is the maximum size of a file that can be uploaded using PHP and how can we change
How can I do it? .click();
How can I do it? .click();  I have a very unusual problem. I want to make a script like this: <script> x = document.getElementById... want that it make mouseup in this element. How can I do it, because if I write
how to fetch data fron facebbok using spring batch and hibernate ?
how to fetch data fron facebbok using spring batch and hibernate ?  how to fetch data from facebbok using spring batch and hibernate ? Means i have to get all details of data from one source like facebook using id ans save all
How do we create session factory in hibernate?
How do we create session factory in hibernate?  Hi, How do we create session factory in hibernate? thanks
How do we create custom component
How do we create custom component  How do we create custom component in JSF. I couldnot find any category for JSF questions
can we use class in jsp which implements interface
can we use class in jsp which implements interface   can we use class in jsp which implements interface
How we can integrate ASP .net website to payment gateway using SOAP xml request and response using wsdl.
How we can integrate ASP .net website to payment gateway using SOAP xml request and response using wsdl.  We have a e-commerce website in ASP.net, c... with wsdl format. As i'm new in development. How i can integrate our website
How can we destroy the cookie?
How can we destroy the cookie?   How can we destroy the cookie
How many ways we can retrieve the date in result set of mysql using php?
How many ways we can retrieve the date in result set of mysql using php?  How many ways we can retrieve the date in result set of mysql using php
How many ways we can retrieve the date in result set of mysql using php?
How many ways we can retrieve the date in result set of mysql using php?  How many ways we can retrieve the date in result set of mysql using php
How many ways we can retrieve the date in result set of mysql using php?
How many ways we can retrieve the date in result set of mysql using php?  How many ways we can retrieve the date in result set of mysql using php
How many ways we can retrieve the date in result set of mysql using php?
How many ways we can retrieve the date in result set of mysql using php?  How many ways we can retrieve the date in result set of mysql using php
How many ways we can retrieve the date in result set of mysql using php?
How many ways we can retrieve the date in result set of mysql using php?  How many ways we can retrieve the date in result set of mysql using php
How many ways we can retrieve the date in result set of mysql using php?
How many ways we can retrieve the date in result set of mysql using php?  How many ways we can retrieve the date in result set of mysql using php
How can we know the number of days between two given dates using PHP?
How can we know the number of days between two given dates using PHP?  How can we know the number of days between two given dates using PHP
How many ways we can retrieve the date in result set of mysql using php?
How many ways we can retrieve the date in result set of mysql using php?  How many ways we can retrieve the date in result set of mysql using php
How to design a batch, design a batch, a batch
How to design a batch       Learn how to make a batch for the member of the unity, you can make same design by this example. New File: Create a new document. Circle: Draw a circle
How can we extract string 'roseindia.net ' from a string http://deepak@roseindia. net using regular expression of php?
How can we extract string 'roseindia.net ' from a string http://deepak@roseindia. net using regular expression of php?   How can we extract string 'roseindia.net ' from a string http://deepak@roseindia. net using regular
How can we get the properties (size, type, width, height) of an image using php image functions?
How can we get the properties (size, type, width, height) of an image using php image functions?  How can we get the properties (size, type, width, height) of an image using php image functions
struts2 how can we add an radio button to form using a class(doa)
struts2 how can we add an radio button to form using a class(doa)  Hi... button on the registration form how to do plz help me out here is my code model...; plz sugest me how to use the class means how should i refer it here  
struts2 how can we add an radio button to form using a class(doa)
struts2 how can we add an radio button to form using a class(doa)  Hi... button on the registration form how to do plz help me out here is my code model...; plz sugest me how to use the class means how should i refer it here  
How we can create a table through procedure ?
How we can create a table through procedure ?  How we can create a table through procedure
How can we know that a session is started or not?
How can we know that a session is started or not?  How can we know that a session is started
 

 

 

DMCA.com