Rails 怎么求同一个表中,两个整数字段之和的排序

tingsen · January 09, 2015 · Last by appell replied at January 09, 2015 · 1833 hits

用的是 mongodb 数据库,怎么求同一个集合中,两个整数字段之和的排序。

还是再加一个字段吧。

aggregation?

You need to Sign in before reply, if you don't have an account, please Sign up first.