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
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
Saloon Keeper

Joined: Oct 23, 2005
Posts: 3697
    
    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)
 
Similar Threads
Inserting multiple record into a database
Is it possible or not?
How to rollback multiple prepared statements
A question about transaction and CRUD operations.
How Do I Insert records in multiple tables thru 1 SQL Query