[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] Reference for unit 'sqldb' (#fcl)

TSQLQuery.DeleteSQL

Statement to be used when inserting a new row in the database

Declaration

Source position: sqldb.pp line 619

published property TSQLQuery.DeleteSQL : TStringList;

Description

DeleteSQL can be used to specify an SQL DELETE statement, which is used when an existing record was deleted from the dataset, and the changes must be written to the database. TSQLQuery can generate a delete statement by itself for many cases, but in case it fails, the statement to be used for the insert can be specified here.

The SQL statement should be parametrized according to the conventions for specifying parameters. Note that old field values can be specified as :OLD_FIELDNAME

See also

TSQLQuery.SQL

  

The SQL statement to execute

TSQLQuery.UpdateSQL

  

Statement to be used when updating an existing row in the database

TSQLQuery.DeleteSQL

  

Statement to be used when inserting a new row in the database

TSQLQuery.UpdateMode

  

How to create update SQL statements.

UsingParams

  

Using parameters

UpdateSQLS

  

Automatic generation of update SQL statements


Documentation generated on: Nov 14 2015