posted 14 years ago
Hi,
is there any way we can get the SQL query generated with replacing '?' with its corresponding 'value'.
eg.
PreparedStatement stmt = conn.prepareStatement("select id, name from users where id = ?");
stmt.setInt(1);
i would like to get an output in console like " select id, name from users where id = 1 "
I have heard like iPreparedStatement or something for this purpose only. I am not sure about that.
is there any way ?