版本: v2.6.0
sum
計算指定欄位的總和。
sum($table, $column, $where)
sum($table, $join, $column, $where)
回傳值
[mixed] 回傳指定欄位的總和值。
$total = $database->sum("account", "money");
echo "Total amount: {$total}";