Difference between revisions of "TDataSet"
From Lazarus wiki
Jump to navigationJump to searchLine 1: | Line 1: | ||
+ | {{TDataSet}} | ||
+ | |||
'''TDataSet''' is the main link to the actual data in a database. A TDataSet descendant acts like a cursor on a table or query-result. | '''TDataSet''' is the main link to the actual data in a database. A TDataSet descendant acts like a cursor on a table or query-result. | ||
Revision as of 07:48, 12 June 2017
│
English (en) │
français (fr) │
日本語 (ja) │
polski (pl) │
русский (ru) │
TDataSet is the main link to the actual data in a database. A TDataSet descendant acts like a cursor on a table or query-result.
SQLTransaction1.Database := SQLConnection1;
SQLQuery1.Transaction := SQLTransaction1;
DataSource1.'''DataSet''' := SQLQuery1;
DBGrid1.DataSource := DataSource1;
A dataset (for example a query restult) can be edited:
ds.Edit();
ds.FieldByName('NAME').AsString := 'Edited name';
ds.Post();
ds.UpdateMode := upWhereAll;
ds.ApplyUpdates();
non-abstract descendants
- TBufDataset -
- TMemDataset -
- TSdfDataSet -
- TFixedFormatDataSet
- TDbf - connect to dBase
- TParadox - connect to Paradox/BDE
- TParadoxDataSet - connect to Paradox/BDE
- TFPCodeGenerator
- TSQLQuery - connect to results of a SQL-query
See also