Andres Olarte wrote:
> Is it possible to get the query string (including the formatted
> parameters) from a PreparedStatement?
In general you can't because the query's not sent like that (the
parameter values are sent out of line from the query).
IIRC, PreparedStatement.toString() will give you an approximation, but
I'm not sure how accurate the results are (and it's not part of the spec)
-O