Get Started

Medoo 1.4

Where Syntax

Query

Fetch

Transaction

Advanced

PDO object

Debug

Information

version: 1.4.5

sum

Get the total value for the column

sum($table, $column, $where)
sum($table, $join, $column, $where)
Return: [number] The total number of the column.
$total = $database->sum("account", "money");

echo "We have $" . $total;