What is SQL query, which retrieves last 10 records from database?
I can’t find it in guides.rubyonrails.org
What is SQL query, which retrieves last 10 records from database?
I can’t find it in guides.rubyonrails.org
select * from table_name sort by some_column asc/desc limit 10
2011/10/7 Misha O. [email protected]
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.
–
Sincerely,
Nikita Demeschenko
Thanks!
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs