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.