我需要相当于
SELECT SUM(balance) as "total_balance" FROM users;
在科哈纳 3。
那么,如何在 Kohana3 中找到表格balance
列的总和?users
$total_balance = ORM::factory ( 'user' )->find ();//I want to change this string to find total_balance to be a sum of the balance column.