Answers for "select last 10 rows mysql"

SQL
7

mysql get last row

SELECT fields FROM table ORDER BY id DESC LIMIT 1;
Posted by: Guest on March-04-2020
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