SelectQueryInterface::countQuery

  1. drupal
    1. 8
    2. 7
Versions
7 public SelectQueryInterface::countQuery()

Get the equivalent COUNT query of this query as a new query object.

Return value

SelectQueryInterface A new SelectQuery object with no fields or expressions besides COUNT(*).

Code

includes/database/select.inc, line 465

<?php
public function countQuery();
?>