Resources | developer.brewmp.com Resources | developer.brewmp.com

Developer

resources

dbc_IPreparedStatement

dbc_IPreparedStatement

  • Extends dbc_IStatement by allowing the binding of variables.
  • Can be executed once or multiple times. Variables can be bound again without recompiling the statement.
  • Can return a result set (dbc_IResultSet), depending on the execute function chosen and the type of query.
dbc_IPreparedStatement objects are created via one of the dbc_IConnection methods.Using a dbc_IPreparedStatement is more efficient than executing many similar dbc_IStatements. Applications that wish to execute multiple SQL statements that differ slightly can use dbc_IPreparedStatement to prepare a single query, then loop through binding values to it and then execute it.

See the C/C++ API Reference for more information.

Required Files

dbc_IPreparedStatement.h

Class ID(s)

N/A

Interface ID

dbc_AEEIID_IPreparedStatement

Location

In Brew MP SDK: platform\databases\inc