Re: how to display / get that query ?
- From: Bill Karwin <bill@xxxxxxxxxx>
- Date: Fri, 02 Sep 2005 11:25:02 -0700
mike hengins wrote:
I would like to display the full SQL insert request so I can run it in Toad. Does anyone know how to display / get that query ?
Well, you do have the query in your local String variable "sql".
I don't see any method in the javadocs for java.sql.Statement or PreparedStatement to return the SQL string.
But typicaly you can't get a SQL string populated with values from the query parameters you've supplied; those values are usually combined with the statement after the SQL has been parsed into some internal format in the RDBMS.
Regards, Bill K. .
- References:
- how to display / get that query ?
- From: mike hengins
- how to display / get that query ?
- Prev by Date: Re: how to display / get that query ?
- Next by Date: Re: Serializing PreparedStatement, or: how do create a database history?
- Previous by thread: Re: how to display / get that query ?
- Next by thread: Re: Serializing PreparedStatement, or: how do create a database history?
- Index(es):
Relevant Pages
|
|