阅读背景:

如何根据外键获取最新记录

来源:互联网 

I am using rails with postgres. I have a table called 'attempts' which belongs to a 'users' table. I want to retrieve all attempts but only show the latest attempt for each user.I am using rails with postgres. I have a table




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

分享到: