function SelectQueryInterface::groupBy

Groups the result set by the specified field.

Parameters

$field: The field on which to group. This should be the field as aliased.

Return value

SelectQueryInterface The called object.

2 methods override SelectQueryInterface::groupBy()
SelectQuery::groupBy in includes/database/select.inc
Groups the result set by the specified field.
SelectQueryExtender::groupBy in includes/database/select.inc
Groups the result set by the specified field.

File

includes/database/select.inc, line 458

Class

SelectQueryInterface
Interface definition for a Select Query object.

Code

public function groupBy($field);

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.