Sets this query to be DISTINCT.
Parameters
$distinct:
TRUE to flag this query DISTINCT, FALSE to disable it.
Return value
SelectQueryInterface
The called object.
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);