Medoo

开始

更新日志

Where 语句

查询

聚合

Fetch

事务

管理

原生SQL查询

Raw object

PDO object

Debug

数据库信息

Sum

计算列的总值。

sum($table, $column, $where)

sum($table, $join, $column, $where)

返回: [string] 列的总值。
$total = $database->sum("account", "money");
 
echo "我们共有 $" . $total;