Get Started

Upgrade

Where Syntax

Query

Aggregation

Fetch

Transaction

Management

Advanced

Raw object

PDO object

Debug

Information

version: 2.1.12

sum

Calculate the total value of the column.

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

echo "We have $" . $total;