Data.SqlExpr.TSQLTable.PrepareStatement

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure PrepareStatement; override;

C++

virtual void __fastcall PrepareStatement();

Properties

Type Visibility Source Unit Parent
procedure
function
public
Data.SqlExpr.pas
Data.SqlExpr.hpp
Data.SqlExpr TSQLTable

Description

Generates the query that TSQLTable uses to fetch data from the database server.

PrepareStatement generates a SELECT query to fetch the records from the table specified by TableName, ordering by the fields in IndexFieldNames or the index in IndexName. If you have specified a master/detail relationship, PrepareStatement sets that up as well.

Do not call PrepareStatement in your applications. Instead, set the Prepared property to true. When you use the Prepared property instead, the SQL table keeps track of the fact that it has already been prepared and need not repeat the process every time it executes.

See Also