I have a database saved in my Android application and want to retrieve the last 10 messages inserted into the DB.
When I use:
Select * from tblmessag
select * from (select * from table_name order by yourfield ASC limit 10) order by yourfield DESC;
You cannot have better solutions than this.