Difference between revisions of "TSQLQuery"
From Free Pascal wiki
Jump to navigationJump to searchLine 4: | Line 4: | ||
SQLTransaction1.Database := SQLConnection1; | SQLTransaction1.Database := SQLConnection1; | ||
SQLQuery1.Transaction := SQLTransaction1; | SQLQuery1.Transaction := SQLTransaction1; | ||
− | ''' | + | DataSource1.DataSet := '''SQLQuery1'''; |
− | DBGrid1.DataSource := | + | DBGrid1.DataSource := DataSource1; |
Revision as of 22:05, 17 July 2016
TSQLQuery is a fundamental database query component for use with any supported database. The component is found on SQLdb tab of the Component Palette.
Typical us of a TSQLQuery:
SQLTransaction1.Database := SQLConnection1; SQLQuery1.Transaction := SQLTransaction1; DataSource1.DataSet := SQLQuery1; DBGrid1.DataSource := DataSource1;
See also