A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Joined: Aug 04, 2006
Mar 09, 2007 06:02:00
Please can someone tell me how to print out (or log via log 4j) the preparedstatment sent through
If I have a
object which uses a query like:
select name from company where sector = 'USA'
then I can print out this entire query to my log file every time it is executd.
If I have a preparedStatement like:
select name from company where sector = ?
Then when I print the sql I get "select name from company where sector = ?
But I want to be able to see what has binded to the ? parameter marker at runtime.
Joined: Apr 14, 2004
Mar 09, 2007 06:41:00
Its always worth
the forum before posting. Your question may have already been
I agree. Here's the link:
subject: PreparedStatment Logging
Is it possible to view the SQL that got executed?
My query is not working!!!
Problem in returning the username
Prepared statement null setting
Two instances of PreperedStatment
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014