# 聚合操作

# count

$this->count('id');

# max

$this->max('id');

# min

$this->min('id');

# sum

$this->sum('id');

# avg

$this->avg('id');

TIP

更复杂的操作,请参考数据查询