jQuery in Action, 2nd edition*
The moose likes JDBC and the fly likes Can we use two quries using prepared statement in one method Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Can we use two quries using prepared statement in one method" Watch "Can we use two quries using prepared statement in one method" New topic
Author

Can we use two quries using prepared statement in one method

Adnan Gondal
Ranch Hand

Joined: Apr 30, 2011
Posts: 32
HI all!

Can we use two quries in one method while using prepared statement, i have tried using this but invalid column name exception is comeing. Any idea please?

My code snippets is as follows.

Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18541
    
    8

Kajal, please don't cross-post your questions to multiple forums. Especially don't repost in a second forum when you already have responses to the original post. I'm closing this one.

(Original post here: http://www.coderanch.com/t/538753/JSF/java/we-two-quries-prepared-statement for anybody who wants to respond.)
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Can we use two quries using prepared statement in one method