Select::having

public Select::having($snippet, $args = array())

Adds an arbitrary HAVING clause to the query.

Parameters

$snippet: A portion of a HAVING clause as a prepared statement. It must use named placeholders, not ? placeholders.

$args: (optional) An associative array of arguments.

Return value

$this

Overrides SelectInterface::having

File

core/lib/Drupal/Core/Database/Query/Select.php, line 304

Class

Select
Query builder for SELECT statements.

Namespace

Drupal\Core\Database\Query

Code

1
2
3
4
public function having($snippet, $args = array()) {
  $this->having->where($snippet, $args);
  return $this;
}
doc_Drupal
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.