MySQL limit from descending order
        Posted  
        
            by faya
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by faya
        
        
        
        Published on 2010-04-25T16:46:21Z
        Indexed on 
            2010/04/25
            16:53 UTC
        
        
        Read the original article
        Hit count: 317
        
Hello,
Is it available to write a query to use same "LIMIT (from), (count)", but get result in backwards?
In example if I have 8 rows in the table and I want to get 5 rows in two steps I would: first step query:
select * from table limit 0, 5
first step result:
first 5 rows;
second step query:
select * from table limit 5, 5
second step result:
last 3 rows;
But I want to get it vice versa. I mean from the first step I want last 3 rows and from the second I want 5 first rows. Thank you for your answer
© Stack Overflow or respective owner