Difference between revisions of "TSQLQuery"
From Free Pascal wiki
Jump to navigationJump to searchLine 1: | Line 1: | ||
'''TSQLQuery''' is a fundamental database query component for use with any supported database. The component is found on [[SQLdb tab]] of the [[Component Palette]]. | '''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 | + | Typical use of a TSQLQuery: |
SQLTransaction1.Database := SQLConnection1; | SQLTransaction1.Database := SQLConnection1; | ||
SQLQuery1.Transaction := SQLTransaction1; | SQLQuery1.Transaction := SQLTransaction1; | ||
DataSource1.DataSet := '''SQLQuery1'''; | DataSource1.DataSet := '''SQLQuery1'''; | ||
DBGrid1.DataSource := DataSource1; | DBGrid1.DataSource := DataSource1; | ||
− | |||
==See also== | ==See also== |
Revision as of 11:29, 18 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 use of a TSQLQuery:
SQLTransaction1.Database := SQLConnection1; SQLQuery1.Transaction := SQLTransaction1; DataSource1.DataSet := SQLQuery1; DBGrid1.DataSource := DataSource1;
See also