Sign in Join
FPDoc Onlineexperiment

TCustomSQLStatement.Execute procedure

Member of TCustomSQLStatementpublicIn unit SQLDB

Execute the SQL statement.

Declaration

pascal
procedure Execute

Description

Execute executes the SQL statement on the database. If necessary, it will first open the connection and start a transaction, followed by a call to Prepare.

Errors

An exception is raised if there is no SQL statement set or the Database or Transaction properties are empty.

If an error occurs at the database level (the SQL failed to execute properly) then an exception is raised as well.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.