|
TableSelect::groupBySet select grouping criteria Description
public mysql_xdevapi\TableSelect mysql_xdevapi\TableSelect::groupBy(mixed
$sort_expr )Sets a grouping criteria for the result set. Parameters
Return ValuesA TableSelect object. ExamplesExample #1 mysql_xdevapi\TableSelect::groupBy example
The above example will output something similar to: Array ( [0] => Array ( [count] => 1 [age] => 31 ) [1] => Array ( [count] => 2 [age] => 42 ) ) |