PDOStatement::rowCount() can be used to get the number of rows affected by the last INSERT
, UPDATE
, or DELETE
.
Does it have the overhead of issuing a second request, such as MySQL's ROW_COUNT(), or is the number of affected rows part of the metadata it receives when executing the statement itself, and as such is "free" resource-wise?