wood burning stoves 2.0*
The moose likes JDBC 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
Bookmark "Prepare Statement?" Watch "Prepare Statement?" New topic
Author

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=?)
stmt.setInt(100);
stmt.setInt(1000);

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?
Thanks,
A.Umar


Sun Certified Java Programmer for Java 2.0 (93%) <p>----Winners always make the learning a habit
 
wood burning stoves
 
subject: Prepare Statement?
 
Similar Threads
prepared statement compilation.
Hibernate association mapping
PreparedStatement
Batch updates of preparedstatement
Regarding JDataStore DataBase