RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TAdoDbxCommand.ExecuteNonQuery Method

Executes a SQL statement against a connection object.

Pascal
function ExecuteNonQuery: Integer; override;
C++
virtual __fastcall int ExecuteNonQuery();

ExecuteNonQuery does not return data, but does allow you to perform SQL UPDATE, INSERT, or DELETE statements to modify a database. ExecuteNonQuery returns the number of rows affected for executing UPDATE, INSERT, or DELETE statements and -1 otherwise. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!