This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
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


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: 3740
    
  10

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


[OCA 8 Book] [Blog]
 
Have you checked out Aspose?
 
subject: How to insert record into multiple table uesing preparedStatement (one time i want to insert record)
 
It's not a secret anymore!