How can we view the generated sql using PreparedStatement ?
Joined: Jun 24, 2008
is there any way we can get the SQL query generated with replacing '?' with its corresponding 'value'.
PreparedStatement stmt = conn.prepareStatement("select id, name from users where id = ?");
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.