TCustomSQLQuery.RowsAffected function
Return the number of rows (records) affected by the last DML/DDL statement.
Declaration
function RowsAffected: TRowsCount; virtualFunction result
The number of affected rows or -1 if not supported.
Description
RowsAffected returns the number of rows affected by the last
statement executed using
ExecSQL.Errors
If the connection or database type does not support returning this number, -1 is returned. If the query is not connected to a database, -1 is returned.
See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
