Name: krT82822 Date: 09/08/99
When you have a PreparedStatement object, and you set all params ('?'), you want to know how the final statement looks like. This is the query that is executed against the database.
i.e.
PreparedStatement ps;
ps=connection.PreparedStatement("INSERT INTO CUSTOMERS(F1,F2) VALUES(?,?)");
ps.setString("SS",1);
ps.setString("TT",2);
****
I?d like to be able to get the query,
query="INSERT INTO CUSTOMERS(F1,F2) VALUES('SS','TT')"
(Review ID: 95020)
======================================================================
- duplicates
-
JDK-4271330 Need PreparedStatement.toString() for viewing current prepared SQL statement
-
- Closed
-