Returns a prepared statement object for the given SQL statement on the specified connection object.
Syntax
prepareStatement( connection , sql )
connection.prepareStatement( sql )
Parameters
connection
|
the connection object to use.
|
sql
|
the SQL statement to use.
|
Returns
preparedstatement
|
the new prepared statement object.
|
Example
ps = con.prepareStatement( query )
|