Update guides/source/active_record_querying.md

Fix missing `ORDER BY id ASC` for Client.first(2);
Uppercase the little y in the SQL equivalent of the Client.last(2).
This commit is contained in:
Hanfei Shen 2013-02-19 00:41:09 +08:00
parent 72118ba01d
commit 8743f800db
1 changed files with 2 additions and 2 deletions

View File

@ -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