Jak wziąć ostatni rząd bez limitu w MySQL
SELECT * FROM (
SELECT * FROM table ORDER BY id DESC LIMIT 50
) sub
ORDER BY id ASC
Ankur
SELECT * FROM (
SELECT * FROM table ORDER BY id DESC LIMIT 50
) sub
ORDER BY id ASC
mysql> select *from DemoTable -> where Id=(select max(Id) from DemoTable);