java mysql PreparedStatement: can I get the full query that it's about to execute ?
- by ufk
Hiya.
I'm working with PreparedStatements with MySQL server.
example:
String myQuery = "select id from user where name = ?";
PreparedStatement stmt = sqlConnection.prepareStatement(myQuery);
stmt.setString(1, "test");
stmt.executeQUery();
ResultSet rs = stmt.getResultSet();
how can I receive the full sql query that is about to be executed on the mysql server?
thanks!