hi all,
Is there any possible to print a PreparedStatement content? I have the following code:
try {
PreparedStatement stmt = this.connection.prepareStatement(
"Insert into table "
+" ( "
+" field1, "
+" field1 "
+" ) "
+" values "
+" ( "
+" ?,"//1
+" ?"//2
+" )"
);
stmt.setInt(1, entrada.getField1());
stmt.setString(2, entrada.getField2());
System.out.println("my query:"+?????);
stmt.execute();
stmt.close();
} catch (SQLException e) {
e.printStackTrace();
}
Edited by: eduacsp on Nov 12, 2007 4:42 AM