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 the fly likes help on transactions Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Databases » JDBC
Reply Bookmark "help on transactions" Watch "help on transactions" New topic
Author

help on transactions

Piradharsan Navaratnam
Greenhorn

Joined: May 15, 2007
Posts: 14
Hello friedns I need to run a query and based on its results to run another query. How can I implement it. Im using mysql innodb.



[ UD: added CODE tags for better readability ]
[ August 19, 2007: Message edited by: Ulf Dittmer ]
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 35250
    
    7
You don't say what happens if you run the code, but I'm guessing that it doesn't work because there can only be a single ResultSet active per Statement. Try what happens if you use different Statement objects for rs_02 and rs_03.

In the future, please UseCodeTags when posting ocde of any length.


Android appsImageJ pluginsJava web charts
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: help on transactions
 
Similar Threads
data mismatch error
Returning a 0 value error
about variable persistence...
an easy test question relating to Bean Management Persistent
returning an int