public function SelectInterface::having in Drupal 8
Same name and namespace in other branches
- 9 core/lib/Drupal/Core/Database/Query/SelectInterface.php \Drupal\Core\Database\Query\SelectInterface::having()
- 10 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 593
Class
- SelectInterface
- Interface definition for a Select Query object.
Namespace
Drupal\Core\Database\QueryCode
public function having($snippet, $args = []);