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

# TSQLStatement

[Properties (by Name)] [Methods (by Name)] [Events (by Name)]

Class to execute non-select SQL statements.

## Declaration

Source position: sqldb.pp line 431

`type TSQLStatement = class(TCustomSQLStatement)`
`published`
`property Database: TSQLConnection;` |  | Database instance to execute statement on.
`property DataSource: TDataSource;` |  | Datasource to copy parameter values from
`property ParamCheck: Boolean;` |  | Should SQL be checked for parameters
`property Params: TParams;` |  | List of parameters.
`property MacroCheck: Boolean;` |  | Check for macros in the SQL statement.
`property Macros: TParams;` |  | Set of macros for this SQL statement.
`property ParseSQL: Boolean;` |  | Parse the SQL statement
`property SQL: TStrings;` |  | The SQL statement to execute
`property Transaction: TSQLTransaction;` |  | The transaction in which the SQL statement should be executed.
`end;`

## Inheritance

`TSQLStatement` |  | Class to execute non-select SQL statements.
`TCustomSQLStatement` |  | Object to execute SQL statements without result set.
`TComponent,IUnknown,IInterfaceComponentReference`
`TPersistent,IFPObserved`
`TObject`

## Description

TSQLStatement is a descendent of TCustomSQLStatement which simply publishes the protected properties of that component.

## See also

TCustomSQLStatement |  | Object to execute SQL statements without result set.

Documentation generated on: May 14 2021