【发布时间】:2012-09-17 09:27:29
【问题描述】:
我需要相当于
SELECT SUM(balance) as "total_balance" FROM users;
在 Kohana3 中。
那么,如何在 Kohana3 中找到users 表的balance 列的总和?
$total_balance = ORM::factory ( 'user' )->find ();//I want to change this string to find total_balance to be a sum of the balance column.
【问题讨论】:
标签: select count kohana kohana-3 kohana-orm