File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JDBC and Relational Databases and the fly likes Prepare Statement? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "Prepare Statement?" Watch "Prepare Statement?" New topic

Prepare Statement?

umar hathab
Ranch Hand

Joined: Aug 20, 2001
Posts: 52
Can any one tell me how to send a prepared statement to the log file whith set values..?
For example
Statement stmt=Connection.prepareStatement(update emp set empno=? where empid=?)

I want to see my log file contains some statement like update emp set empno=100 where empid=1000.
I want to know how to S.O.P this to log file?

Sun Certified Java Programmer for Java 2.0 (93%) <p>----Winners always make the learning a habit
I agree. Here's the link:
subject: Prepare Statement?
It's not a secret anymore!