printing queries in prepared statement
843859May 5 2006 — edited May 5 2006I have a created a prepared statement. When I execute the query I get an error stating that the SQL isn't correct. I would therefore like to print out the statement so I can see what it looks like. Here is what my code is doing.
Create a query string with question marks.
Hand that string off to the preparedStatement constructor.
Modify that string using setString() One for every question mark.
Send the query off by calling executeQuery()
All I want to do is print out what the statement now looks like after the setStrings() are called.
Thanks,
-KAP