Method SqlStatement:execute() Foundation

Executes the given SQL statement.

METHOD :execute() -> nRows

This method returns the number of rows affected by a INSERT, UPDATE or DELETE SQL command. For all other SQL commands 0 is returned.


Executes the given SQL statement which may be an INSERT UPDATE or DELETE statement or an SQL statement that returns nothing such as an SQL DDL statement.

Use ";" to seperate multiple statements in your string.


If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.