简体中文
版本: v2.3.0

sum

计算指定列的总和。

sum($table, $column, $where)
sum($table, $join, $column, $where)
返回值
[mixed] 返回指定列的求和值。
$total = $database->sum("account", "money");

echo "Total amount: {$total}";