Method CopyStatement
CopyStatement()
Returns a copy of this prepared statement without its variables.
Declaration
public PreparedStatement CopyStatement()
Returns
Type | Description |
---|---|
PreparedStatement | A copy of this prepared statement without its variables. |
Remarks
This method returns a new instance of
PreparedStatement that shares this object's prepared
query, which is immutable, but does not share its variables. Use
this method when you need to execute the same prepared query in
different threads (call this method to create a new copy for each
additional thread).