CodeCharge Studio

createPreparedStatement Method (Java)

Applies to

JDBCConnection Object

Syntax

public PreparedStatement createPreparedStatement(java.lang.String sql);

Return value

PreparedStatement - prepared statement object

Parameters

Name Type Description
sql String SQL query with parameters

Description

This method creates PreparedStatement from SQL indicated by an SQL parameter. PreparedStatement differs from an ordinary Statement by the fact that question marks can be used in the place of query parameters.


On-line, printable versions and updates