Quantcast
Channel: MYSQL select table by desc order limiting from last 10 rows - Stack Overflow
Browsing latest articles
Browse All 3 View Live

Answer by Amatul Uzma for MYSQL select table by desc order limiting from last...

SELECT * FROM ( SELECT * FROM yourTableName WHERE yourCondition ORDER BY id DESC LIMIT 10)Var1 ORDER BY id ASC;

View Article


Answer by Tim Biegeleisen for MYSQL select table by desc order limiting from...

Use a subquery here to get the final reverse ordering you want:SELECT *FROM( SELECT * FROM comments WHERE chat_id = 1 ORDER BY comment_id DESC -- last 10 rows LIMIT 10) tORDER BY comment_id; -- in...

View Article


MYSQL select table by desc order limiting from last 10 rows

I am trying to get the rows which basically contains the comments of a, I want to use pagination, and trying to get the latest 10 comments in the order of old to new, so when I scroll up my page I am...

View Article
Browsing latest articles
Browse All 3 View Live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>