max() public method
Returns the maximum of the specified column values.
public integer max ( $q, $db = null ) | ||
---|---|---|
$q | string |
The column name. Make sure you properly quote column names in the expression. |
$db | yii\mongodb\Connection |
The Mongo connection used to execute the query. If this parameter is not given, the |
return | integer |
The maximum of the specified column values. |
Please login to continue.