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 Can we use two quries using prepared statement in one method Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Databases » JDBC
Reply 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: 16487
    
    2

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://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Can we use two quries using prepared statement in one method
 
Similar Threads
Can we use two quries using prepared statement in one method
A Very little problem in h:dataTable implementation
howto modify database structure ?
Problem with preapred Statement
ejbLoad is not getting called