sql select last 10 rows code example
Example 1: Select last row from SQL Table
SELECT * FROM TableName WHERE id=(SELECT max(id) FROM TableName);
Example 2: php sql last 10 rows
SELECT * FROM big_table ORDER BY A DESC LIMIT 10
SELECT * FROM TableName WHERE id=(SELECT max(id) FROM TableName);
SELECT * FROM big_table ORDER BY A DESC LIMIT 10