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