You can get SQL server to select the last N rows with the following query:
select * from tbl_name order by id desc limit N;
You can get SQL server to select the last N rows with the following query:
select * from tbl_name order by id desc limit N;