public function StatementInterface::rowCount in Drupal 9
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/Database/StatementInterface.php \Drupal\Core\Database\StatementInterface::rowCount()
- 10 core/lib/Drupal/Core/Database/StatementInterface.php \Drupal\Core\Database\StatementInterface::rowCount()
Returns the number of rows affected by the last SQL statement.
Return value
The number of rows affected by the last DELETE, INSERT, or UPDATE statement executed or throws \Drupal\Core\Database\RowCountException if the last executed statement was SELECT.
Throws
\Drupal\Core\Database\RowCountException
4 methods override StatementInterface::rowCount()
- Statement::rowCount in core/
lib/ Drupal/ Core/ Database/ Statement.php - Returns the number of rows affected by the last SQL statement.
- StatementEmpty::rowCount in core/
lib/ Drupal/ Core/ Database/ StatementEmpty.php - Returns the number of rows affected by the last SQL statement.
- StatementPrefetch::rowCount in core/
lib/ Drupal/ Core/ Database/ StatementPrefetch.php - Returns the number of rows affected by the last SQL statement.
- StatementWrapper::rowCount in core/
lib/ Drupal/ Core/ Database/ StatementWrapper.php - Returns the number of rows affected by the last SQL statement.
File
- core/
lib/ Drupal/ Core/ Database/ StatementInterface.php, line 65
Class
- StatementInterface
- Represents a prepared statement.
Namespace
Drupal\Core\DatabaseCode
public function rowCount();