EPUB | CHM | PDF

TMySQLBatchExecute.Events.OnAfterStatement

Top Previous Next

OnAfterStatement event fires immediately after execution of SQL statement from SQL script by ExecSQL method.

Syntax:

type
  TMySqlBatchAfterStatementEvent = procedure(Sender: TObject;
                                            SQLText: string;
  const StatementNo, RowsAffected: Integer;
  const Success: boolean) of object;
  OnAfterStatement: TMySqlBatchAfterStatementEvent;

Description:

Parameters:

SQLText

SQL query statement text;

StatementNo

The number of the SQL statement in SQL script.

RowsAffected

The quantity of records changed after query execution;

Success

Return a value of the boolean type with query execution result.