Pascal Data Objects

function TPDO.prepare_update (const tablename: Ansistring; const set_expressions: Ansistring; const condition: Ansistring = ''; const order: Ansistring = ''; const limit: longword = 0): IPDOStatement;

The TPDO.prepare_update method is just like a TPDO.prepare_as_is method, except that it only prepares UPDATE statements as a function of the database protocol that is being used. Currently, despite not yet having drivers for these servers, server-specific SQL can be produced for:

  • MySQL
  • PostgreSQL
  • Firebird

Parameters

The same as used by the TPDO.query_update function

Return Values

TPDO.prepare_update returns a IPDOStatement object.

Example

Please see the examples on the TPDO.prepare_as_is and TPDO.query_update pages.