prepareStatement method

Pre-compiles and stores into a PreparedStatement object a SQL statement with or without IN parameters.

Syntax
PreparedStatement prepareStatement(String sql, String persistName)
Parameters
  • sql   A SQL statement that may contain one or more '?' IN parameter placeholder.

  • persistName   The name for cross-page JavaScript object persistence. Set to null if no persistence is required (for example, if the application has only a single HTML page).

Remarks

This object can be used to efficiently execute the SQL statement multiple times.