Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. SelectInterface.php

function 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 559

Class

SelectInterface
Interface definition for a Select Query object.

Namespace

Drupal\Core\Database\Query

Code

public function having($snippet, $args = []);

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal