$database→exec()
Execute an SQL statement string
If given a PDOStatement, this method behaves the same as the execute() method.
Usage
// basic usage
$bool = $database->exec($statement);
// usage with all arguments
$bool = $database->exec($statement, string $note = '');
Arguments
Exceptions
Method can throw exceptions on error:
\PDOException
$database methods and properties
API reference based on ProcessWire core version 3.0.251