IBX.IBUpdateSQL.TIBUpdateSQL.DeleteSQL

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property DeleteSQL: TStrings index 2 read GetSQLIndex write SetSQLIndex;

C++

__property System::Classes::TStrings* DeleteSQL = {read=GetSQLIndex, write=SetSQLIndex, index=2};

Properties

Type Visibility Source Unit Parent
property published
IBX.IBUpdateSQL.pas
IBX.IBUpdateSQL.hpp
IBX.IBUpdateSQL TIBUpdateSQL

Description

Specifies the SQL DELETE statement to use when applying a cached deletion of a record.

Set DeleteSQL to the SQL DELETE statement to use when applying a deletion to a record. Statements can be parameterized queries. To create a DELETE statement at design time, use the UpdateSQL editor to create statements, such as:


delete from Employee
where
Emp_No = :OLD_Emp_No


At run time, an application can write a statement directly to this property to set or change the DELETE statement.

Note: As the example illustrates, DeleteSQL supports an extension to normal parameter binding. To retrieve the value of a field as it exists prior to application of cached updates, use the field name with the prefix 'OLD_'. This is especially useful when doing field comparisons in the WHERE clause of the statement.