Medoo

开始

Where 语句

查询

Transaction

原生SQL查询

PDO object

Debug

数据库信息

sum

某个列字段相加

sum($table, $column, $where)
sum($table, $join, $column, $where)
Return: [number] 相加的值.
The type of returned data is number.
$total = $database->sum("account", "money");

echo "We have $" . $total;