Answers for "get last 2nd row in mysql"

SQL
1

mysql select last 10 rows

SELECT * FROM tableName ORDER BY col1 DESC LIMIT 10;
Posted by: Guest on August-13-2021
0

select last N rows mysql

SELECT * FROM (
    SELECT * FROM table ORDER BY id DESC LIMIT 50
) sub
ORDER BY id ASC
Posted by: Guest on April-01-2021

Code answers related to "SQL"

Browse Popular Code Answers by Language