PDO::exec
Execute an SQL statement and return the number of affected rows
PDO::exec executes an SQL statement in a single function call, returning the number of rows affected by the statement.
Signature
public function exec(string
$statement )
Parameters
$statement
— string
Returns
- int