เวอร์ชัน: v2.6.0
sum
คำนวณผลรวมของค่าในคอลัมน์
sum($table, $column, $where)
sum($table, $join, $column, $where)
ค่าที่ส่งกลับ
[mixed] ผลรวมของค่าในคอลัมน์ที่ระบุ
$total = $database->sum("account", "money");
echo "Total amount: {$total}";