aspose file tools*
The moose likes Java in General and the fly likes Inserting multiple record in DB using for loop Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Inserting multiple record in DB using for loop" Watch "Inserting multiple record in DB using for loop" New topic
Author

Inserting multiple record in DB using for loop

eshant sharma
Greenhorn

Joined: Sep 03, 2009
Posts: 1

I have all values stored in my arraylist.Now i wanted to know that how to insert multiple records in database using for loop in java.

Appreciate if i can some live example code.
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14687
    
  16

"nish nish",
Welcome to the ranch. You may not be aware of the ranch Naming Policy. Please read it carefully and change your name accordingly. Thank you.


[My Blog]
All roads lead to JavaRanch
Jaydeep Mazumdar
Greenhorn

Joined: Aug 26, 2009
Posts: 23
You can use batch updates to update the data in the list. You will find lots of code samples if you google.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Inserting multiple record in DB using for loop
 
Similar Threads
Changing the TextInput Colour while displying Results from database
Multiple Socket connection
Santanu
Skipping lines in JTextArea
Statement and PreparedStatement question?