You are here

public function SelectInterface::having in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/lib/Drupal/Core/Database/Query/SelectInterface.php \Drupal\Core\Database\Query\SelectInterface::having()

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

2 methods override SelectInterface::having()
Select::having in core/lib/Drupal/Core/Database/Query/Select.php
Adds an arbitrary HAVING clause to the query.
SelectExtender::having in core/lib/Drupal/Core/Database/Query/SelectExtender.php
Adds an arbitrary HAVING clause to the query.

File

core/lib/Drupal/Core/Database/Query/SelectInterface.php, line 576
Contains \Drupal\Core\Database\Query\SelectInterface.

Class

SelectInterface
Interface definition for a Select Query object.

Namespace

Drupal\Core\Database\Query

Code

public function having($snippet, $args = array());