开始

Where 语法

查询

事务

高级

PDO 对象

Debug

数据库信息

版本: 1.1.3

sum

获取一列的总计值

sum($table, $column, $where)
sum($table, $join, $column, $where)
返回: [number] 一行的总计值。
$total = $database->sum("account", "money");

echo "We have $" . $total;