File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JDBC and Relational Databases and the fly likes How to insert record into multiple table uesing preparedStatement (one time i want to insert record) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Barcodes with iOS this week in the iOS forum
or Core Java for the Impatient in the Java 8 forum!

JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "How to insert record into multiple table uesing preparedStatement (one time i want to insert record)" Watch "How to insert record into multiple table uesing preparedStatement (one time i want to insert record)" New topic
Author

How to insert record into multiple table uesing preparedStatement (one time i want to insert record)

Nr Java
Greenhorn

Joined: Aug 10, 2009
Posts: 9
In general at a time i am able insert record in a table ...But i dont have idea to insert record in multiple table at one time ...
Any one help me with coading ...if you can
Thanks to all
Scott Selikoff
author
Saloon Keeper

Joined: Oct 23, 2005
Posts: 3739
    
  10

Start a transaction, use multiple prepared statements, then commit the transaction.


[OCA 8 Book] [Blog]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to insert record into multiple table uesing preparedStatement (one time i want to insert record)