A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
JDBC and Relational Databases
How to insert record into multiple table uesing preparedStatement (one time i want to insert record)
Joined: Aug 10, 2009
Aug 25, 2009 23:30:26
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
Joined: Oct 23, 2005
Aug 25, 2009 23:34:46
Start a transaction, use multiple prepared statements, then commit the transaction.
[OCA 8 Book]
I agree. Here's the link:
subject: How to insert record into multiple table uesing preparedStatement (one time i want to insert record)
How Do I Insert records in multiple tables thru 1 SQL Query
Is it possible or not?
How to rollback multiple prepared statements
Inserting multiple record into a database
A question about transaction and CRUD operations.
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015