rub*_*ist 1 ruby-on-rails
我有一个员工模型,员工表中会有一些带有薪水栏的记录.我需要找到第二大员工薪水的记录我怎么能用简单的铁路查询呢?
And*_*ton 7
Employee.order(salary: :desc).offset(1)
归档时间:
9 年,8 月 前
查看次数:
802 次
最近记录: