阅读背景:

Rails中ActiveRecord中的多个sum()

来源:互联网 

I'd like to link multiple sums() to a single group by while selecting other fields at the same time. I'd also prefer to use the ActiveRecord methods to do this rather than construct a sql string manually, as I may modify the behavior of inherited classes of ActiveRecord later.I'd like to link multiple sums() to a single gr




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: