Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. StatementInterface.php

function 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

2 methods override StatementInterface::rowCount()
StatementPrefetchIterator::rowCount in core/lib/Drupal/Core/Database/StatementPrefetchIterator.php
Returns the number of rows matched by the last SQL statement.
StatementWrapperIterator::rowCount in core/lib/Drupal/Core/Database/StatementWrapperIterator.php
Returns the number of rows matched by the last SQL statement.

File

core/lib/Drupal/Core/Database/StatementInterface.php, line 63

Class

StatementInterface
Represents a prepared statement.

Namespace

Drupal\Core\Database

Code

public function rowCount();

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal