At 11:32 -0800 3/30/02, destr0 wrote:
>Can you not have the LIMIT clause before the ORDER Clause in a select query?
>
>SELECT * FROM myTable LIMIT 30, 45 ORDER BY someField ASC;
>
>This query ^ fails with the error:
>
>Error 1064: You have an error in your SQL syntax near ' ORDER BY someField
>ASC' at line 1
>
>I just want to make sure that the case is that you can't have your LIMIT
>clause before your order clause.
You can't. And even if you could, the ORDER BY would be evaluated before
the LIMIT.
| Thread |
|---|
| • LIMIT, ORDER Dilema | destr0 | 30 Mar |
| • Re: LIMIT, ORDER Dilema | Tyler Longren | 30 Mar |
| • Re: LIMIT, ORDER Dilema | Paul DuBois | 30 Mar |
| • Re: LIMIT, ORDER Dilema | destr0 | 30 Mar |
| • Re: LIMIT, ORDER Dilema | Paul DuBois | 30 Mar |
| • Re: LIMIT, ORDER Dilema | destr0 | 30 Mar |
| • Re: LIMIT, ORDER Dilema | Paul DuBois | 30 Mar |
| • RE: LIMIT, ORDER Dilema | Roger Baklund | 30 Mar |
| • RE: LIMIT, ORDER Dilema | Paul DuBois | 30 Mar |
| • Calculate current age with given birthday | Son Nguyen | 30 Mar |
| • RE: Calculate current age with given birthday | Roger Baklund | 30 Mar |
| • RE: Calculate current age with given birthday | Paul DuBois | 30 Mar |
| • RE: Calculate current age with given birthday | Michael Stassen | 30 Mar |
| • Re: LIMIT, ORDER Dilema | Steven Roussey | 30 Mar |
| • RE: Calculate current age with given birthday | Paul DuBois | 31 Mar |
| • RE: Calculate current age with given birthday | Michael Stassen | 2 Apr |