function StatementInterface::rowCount
Same name in other branches
- 9 core/lib/Drupal/Core/Database/StatementInterface.php \Drupal\Core\Database\StatementInterface::rowCount()
- 8.9.x core/lib/Drupal/Core/Database/StatementInterface.php \Drupal\Core\Database\StatementInterface::rowCount()
- 11.x core/lib/Drupal/Core/Database/StatementInterface.php \Drupal\Core\Database\StatementInterface::rowCount()
Returns the number of rows matched by the last SQL statement.
Return value
int The number of rows matched 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()
- StatementPrefetch::rowCount in core/
lib/ Drupal/ Core/ Database/ StatementPrefetch.php - StatementPrefetchIterator::rowCount in core/
lib/ Drupal/ Core/ Database/ StatementPrefetchIterator.php - StatementWrapper::rowCount in core/
lib/ Drupal/ Core/ Database/ StatementWrapper.php - StatementWrapperIterator::rowCount in core/
lib/ Drupal/ Core/ Database/ StatementWrapperIterator.php
File
-
core/
lib/ Drupal/ Core/ Database/ StatementInterface.php, line 63
Class
- StatementInterface
- Represents a prepared statement.
Namespace
Drupal\Core\DatabaseCode
public function rowCount();
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.