aspose file tools*
The moose likes JDBC 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 Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Databases » JDBC
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: 3710
    
    5

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


My Blog: Down Home Country Coding with Scott Selikoff
 
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)