File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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
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: 14688
    
  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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Inserting multiple record in DB using for loop