is there a way to select the last n rows from a table?
thanks!
| SitePoint Sponsor |
is there a way to select the last n rows from a table?
thanks!


yes, there is
the last n rows based on which column?
based on the primary column called 'id'
SELECT fields FROM table WHERE 1=1 ORDER BY id DESC LIMIT 30;![]()
- Nathan
Bookmarks