diff options
author | Vijay Dev <vijaydev.cse@gmail.com> | 2013-02-26 21:53:38 +0530 |
---|---|---|
committer | Vijay Dev <vijaydev.cse@gmail.com> | 2013-02-26 21:53:38 +0530 |
commit | 7184e3e02ecd155cb26f4755dab980f2ce6582d2 (patch) | |
tree | 04cb126b730c7fd98cb37ce68adb5320481db9af /guides/source/active_record_querying.md | |
parent | b1dee8c2535b2bca6ebe69d18c24d29f9ba19470 (diff) | |
parent | b21a73d02576b7cd5ec88193065b3aa21c2d2407 (diff) | |
download | rails-7184e3e02ecd155cb26f4755dab980f2ce6582d2.tar.gz rails-7184e3e02ecd155cb26f4755dab980f2ce6582d2.tar.bz2 rails-7184e3e02ecd155cb26f4755dab980f2ce6582d2.zip |
Merge branch 'master' of github.com:lifo/docrails
Diffstat (limited to 'guides/source/active_record_querying.md')
-rw-r--r-- | guides/source/active_record_querying.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/guides/source/active_record_querying.md b/guides/source/active_record_querying.md index bc3b1669d2..5d82541da9 100644 --- a/guides/source/active_record_querying.md +++ b/guides/source/active_record_querying.md @@ -299,7 +299,7 @@ Client.first(2) The SQL equivalent of the above is: ```sql -SELECT * FROM clients LIMIT 2 +SELECT * FROM clients ORDER BY id ASC LIMIT 2 ``` #### last @@ -315,7 +315,7 @@ Client.last(2) The SQL equivalent of the above is: ```sql -SELECT * FROM clients ORDER By id DESC LIMIT 2 +SELECT * FROM clients ORDER BY id DESC LIMIT 2 ``` ### Retrieving Multiple Objects in Batches |