IntelliJ Java IDE
The moose likes JDBC and the fly likes How to reuse the prepared statement ? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » JDBC
Reply Bookmark "How to reuse the prepared statement ?" Watch "How to reuse the prepared statement ?" New topic
Author

How to reuse the prepared statement ?

Shuang mu
Greenhorn

Joined: Mar 28, 2002
Posts: 7
hai,
now i face a big problem is can i reuse the prepared statement? each time i try to reuse it but i fail, all the reference refer to the same data make the update statement cannot be execute,
so please help me to solve this problem......
thanks....
Dave Vick
Ranch Hand

Joined: May 10, 2001
Posts: 3244
Shuang
Something like this should do it for you:

[ April 01, 2002: Message edited by: Dave Vick ]

Dave
 
IntelliJ Java IDE
 
subject: How to reuse the prepared statement ?
 
Threads others viewed
Urgent Java interview question 6+ yrs exp.
doubt
Create DB2 database
Can't read string with quotes around it in my bean method - Please help?????
Prepared statements question
IntelliJ Java IDE