public function SelectInterface::distinct

Sets this query to be DISTINCT.

Parameters

$distinct: TRUE to flag this query DISTINCT, FALSE to disable it.

Return value

SelectQueryInterface The called object.

2 methods override SelectInterface::distinct()
Select::distinct in drupal/core/lib/Drupal/Core/Database/Query/Select.php
Sets this query to be DISTINCT.
SelectExtender::distinct in drupal/core/lib/Drupal/Core/Database/Query/SelectExtender.php
Sets this query to be DISTINCT.

File

drupal/core/lib/Drupal/Core/Database/Query/SelectInterface.php, line 148
Definition of Drupal\Core\Database\Query\SelectInterface

Class

SelectInterface
Interface definition for a Select Query object.

Namespace

Drupal\Core\Database\Query

Code

public function distinct($distinct = TRUE);