RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TIBUpdateSQL.SetParams Method

Binds parameters in an SQL statement prior to statement execution.

Pascal
procedure SetParams(UpdateKind: TUpdateKind);
C++
__fastcall SetParams(TUpdateKind UpdateKind);

Call SetParams to bind parameters in an SQL statement associated with the update object prior to executing the statement. UpdateKind indicates the type of statement for which to bind parameters, and can be one of the following values:

Value 
Meaning 
ukModify 
Bind parameters for the SQL statement used to update records 
ukInsert 
Bind parameters for the SQL statement used to insert new records 
ukDelete 
Bind parameters for the SQL statement used to delete records 

Parameters are indicated in an SQL statement by a colon. Except for the leading colon in the parameter name, the parameter name must exactly match the name of an existing field name for the dataset.

Note: Parameter names can be prefaced by the 'OLD_' indicator. If so, the old value of the field is used to perform the update instead of any updates in the cache.
 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!