Medoo

开始

更新日志

Where 语句

查询

聚合

Fetch

事务

原生SQL查询

Raw object

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;