Bluz\Db\Query\Select::groupBy PHP Méthode

groupBy() public méthode

Replaces any previously specified groupings, if any. Example $sb = new Select(); $sb ->select('u.name') ->from('users', 'u') ->groupBy('u.id');
public groupBy ( variadic $groupBy ) : Select
$groupBy variadic the grouping expression
Résultat Select instance
    public function groupBy(...$groupBy)
    {
        if (empty($groupBy)) {
            return $this;
        }
        return $this->addQueryPart('groupBy', $groupBy, false);
    }