|
Class TDAOQuery (unit DAOQuery) |
TDAOQuery encapsulates a dataset with a result set that is based on an SQL statement.
|
Functions |
procedure Execute;
function MacroByName(const Value: string): TParam;
function ParamByName(const Value: string): TParam;
|
Properties |
property FilterText :
property MacroChar : Char
property Macros : TParams
property OpenType : TDAOQueryOpenType
property Params : TParams
property SortText :
property SQL : TStrings
property MacroCount : Integer
property ParamCount : Integer
property RecordsAffected : Integer
|
Functions |
procedure Execute;
function MacroByName(const Value: string): TParam;
function ParamByName(const Value: string): TParam;
|
Properties |
property FilterText :
property MacroChar : Char
property Macros : TParamsFor example, you can use macroses to change order clause of sql statement:
DAOQuery1.SQL.Text := 'SELECT * FROM Customers ORDER BY %Order';
DAOQuery1.MacroByName('Order').AsString := 'Customer_Id';
property OpenType : TDAOQueryOpenType
OpenType is set from the following values:
| db_OpenDynaset | Opening of Recordset such as a dynamic set of records. |
| db_OpenSnapshot | Opening of Recordset such as a static set of records. |
property Params : TParams
property SortText :
property SQL : TStrings
property MacroCount : Integer
property ParamCount : Integer
property RecordsAffected : Integer