XBSQL: An SQL wrapper for the XBase DBMS library

Next Previous Table of Contents

## 5. The XBSQLDelete class

The XBSQLDelete 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 XBSQLDelete::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 XBSQLDelete::getNumRows ()
  Returns the number of rows deleted on the last execution of the query.