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:
parent
72118ba01d
commit
8743f800db
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user