[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] |
[Properties (by Name)] [Methods (by Name)] [Events (by Name)]
Class to handle SQL commands (with or without result set)
Source position: sqldb.pp line 340
type TSQLQuery = class(TCustomSQLQuery) |
||
public |
||
SchemaType: <NIL>; |
|
Schema type |
published |
||
MaxIndexesCount: <NIL>; |
|
Maximum allowed number of indexes. |
FieldDefs: <NIL>; |
|
Definitions of available fields in the underlying database |
Active: <NIL>; |
|
Is the dataset open or closed. |
AutoCalcFields: <NIL>; |
|
How often should the value of calculated fields be calculated |
Filter: <NIL>; |
|
Filter to apply to the data in memory. |
Filtered: <NIL>; |
|
Is the filter active or not. |
AfterCancel: <NIL>; |
|
Event triggered after a Cancel operation. |
AfterClose: <NIL>; |
|
Event triggered after the dataset is closed |
AfterDelete: <NIL>; |
|
Event triggered after a succesful Delete operation. |
AfterEdit: <NIL>; |
|
Event triggered after the dataset is put in edit mode. |
AfterInsert: <NIL>; |
|
Event triggered after the dataset is put in insert mode. |
AfterOpen: <NIL>; |
|
Event triggered after the dataset is opened. |
AfterPost: <NIL>; |
|
Event called after changes have been posted to the underlying database |
AfterScroll: <NIL>; |
|
Event triggered after the cursor has changed position. |
BeforeCancel: <NIL>; |
|
Event triggered before a Cancel operation. |
BeforeClose: <NIL>; |
|
Event triggered before the dataset is closed. |
BeforeDelete: <NIL>; |
|
Event triggered before a Delete operation. |
BeforeEdit: <NIL>; |
|
Event triggered before the dataset is put in edit mode. |
BeforeInsert: <NIL>; |
|
Event triggered before the dataset is put in insert mode. |
BeforeOpen: <NIL>; |
|
Event triggered before the dataset is opened. |
BeforePost: <NIL>; |
|
Event called before changes are posted to the underlying database |
BeforeScroll: <NIL>; |
|
Event triggered before the cursor changes position. |
OnCalcFields: <NIL>; |
|
Event triggered when values for calculated fields must be computed. |
OnDeleteError: <NIL>; |
|
Event triggered when a delete operation fails. |
OnEditError: <NIL>; |
|
Event triggered when an edit operation fails. |
OnFilterRecord: <NIL>; |
|
Event triggered to filter records. |
OnNewRecord: <NIL>; |
|
Event triggered when a new record is created. |
OnPostError: <NIL>; |
|
Event triggered when a post operation fails. |
Database: <NIL>; |
|
The TSQLConnection instance on which to execute SQL Statements |
Transaction: <NIL>; |
|
Transaction in which to execute SQL statements |
ReadOnly: <NIL>; |
||
SQL: <NIL>; |
|
The SQL statement to execute |
UpdateSQL: <NIL>; |
|
Statement to be used when updating an existing row in the database |
InsertSQL: <NIL>; |
|
Statement to be used when inserting a new row in the database |
DeleteSQL: <NIL>; |
|
Statement to be used when inserting a new row in the database |
IndexDefs: <NIL>; |
|
List of local index Definitions |
Params: <NIL>; |
|
Parameters detected in the SQL statement. |
UpdateMode: <NIL>; |
|
How to create update SQL statements. |
UsePrimaryKeyAsKey: <NIL>; |
|
Should primary key fields be marked pfInKey |
ParseSQL: <NIL>; |
|
Should the SQL statement be parsed or not |
DataSource: <NIL>; |
|
Source for parameter values for unbound parameters |
ServerFilter: <NIL>; |
|
Append server-side filter to SQL statement |
ServerFiltered: <NIL>; |
|
Should server-side filter be applied |
ServerIndexDefs: <NIL>; |
|
List of indexes on the primary table of the query |
end; |
|
Class to handle SQL commands (with or without result set) |
|
| | ||
|
Custom Class to handle SQL commands (with or without result set) |
|
| | ||
TCustomBufDataset |
||
? | ||
TObject |
TSQLQuery exposes the properties and some methods introduced in TCustomSQLQuery. It encapsulates a single SQL statement: it implements all the necessary #fcl.db.TDataset functionality to be able to handle a result set. It can also be used to execute a single SQL statement that does not return data, using the TCustomSQLQuery.ExecSQL method.
Typically, the TSQLQuery.Database property must be set once, the TSQLQuery.Transaction property as well. Then the TSQLQuery.SQL property can be set. Depending on the kind of SQL statement, the Open method can be used to retrieve data, or the ExecSQL method can be used to execute the SQL statement (this can be used for DDL statements, or update statements).
|
Transaction in which a TSQLQuery is handled |
|
|
An abstract class representing a connection to a SQL Database |
|
|
Execute a SQL statement that does not return a result set |
|
|
The SQL statement to execute |