Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SQL Anywhere 11.0.1 » UltraLite - M-Business Anywhere Programming » UltraLite for M-Business Anywhere API reference » Connection class


prepareStatement method

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

PreparedStatement prepareStatement(String sql, String persistName)
  • 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).


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