聚合方法 简述
max 最大值
min 最小值
sum 求和
avg 求积
count 记录数
// 最大积分数
$db->account->max('score')

// 用户主题数
$db->post->where('user_id', 1)->count()

results matching ""

    No results matching ""