SelectQueryInterface::distinct

  1. drupal
    1. 8
    2. 7
Versions
7 public SelectQueryInterface::distinct($distinct = TRUE)

Sets this query to be DISTINCT.

Parameters

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

Return value

SelectQueryInterface The called object.

Code

includes/database/select.inc, line 174

<?php
public function distinct($distinct = TRUE);
?>