Next Previous Table of Contents

## 4. The XBSQLUpdate class

The XBSQLUpdate class represents an instance of a parsed and checked SQL update query. An instance is executed using the execute method, after which results can be retrieved.

- bool XBSQLUpdate::execute (int, XBSQLValue *)
  This method executes the query. The arguments are, respectively, the number and set of values to be substituted into any ? placeholders in the parsed SQL. Note that the query may be executed multiple times. In the event of an error, the error message can be retrieved from the parent XBaseSQL object.

- int XBSQLUpdate::getNumRows ()
  Returns the number of rows affected on the last execution of the query.