Simple query

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!