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

# TSQLQuery.Params

Parameters detected in the SQL statement.

## Declaration

Source position: sqldb.pp line 481

`published property TSQLQuery.Params : TParams;`

## Description

Params contains the parameters used in the SQL statement. This collection is only updated when ParseSQL is True. For each named parameter in the SQL property, a named item will appear in the collection, and the collection will be used to retrieve values from.

When Open or ExecSQL is called, and the Datasource property is not Nil, then for each parameter for which no value was explicitly set (its Bound property is False), the value will be retrieved from the dataset connected to the datasource.

For each parameter, a field with the same name will be searched, and its value and type will be copied to the (unbound) parameter. The parameter remains unbound.

The Update, delete and insert SQL statements are not scanned for parameters.

## See also

TSQLQuery.SQL |  | The SQL statement to execute
TSQLQuery.ParseSQL |  | Should the SQL statement be parsed or not
TParam.Bound |  | Is the parameter value bound (set to fixed value)
UsingParams |  | Using parameters
UpdateSQLS |  | Automatic generation of update SQL statements

Documentation generated on: Feb 26 2014